| | |
| | | var fileName = $"SceneIcon_{tradeTime}.png";
|
| | | //生成文件图片
|
| | | IO.FileUtils.WriteFileByBytes(System.IO.Path.Combine(Config.Instance.FullPath, fileName), this.btnScenePic.ImageBytes);
|
| | | HdlAutoBackupLogic.AddOrEditorFile(fileName);
|
| | | HdlBackupLogic.Current.AddOrEditorAutoBackFileStatu(fileName);
|
| | | this.cloneScene.IconPath = fileName;
|
| | | }
|
| | | //转移属性
|
| | |
| | | {
|
| | | //删除自定义图片
|
| | | HdlFileLogic.Current.DeleteFile(System.IO.Path.Combine(Config.Instance.FullPath, this.editorScene.IconPath));
|
| | | HdlAutoBackupLogic.DeleteFile(this.editorScene.IconPath);
|
| | | HdlBackupLogic.Current.DeleteAutoBackFileStatu(this.editorScene.IconPath);
|
| | | }
|
| | | if (this.cloneScene.IconPathType != 0)
|
| | | {
|
| | |
| | | var fileName = $"SceneIcon_{tradeTime}.png";
|
| | | //生成文件图片
|
| | | IO.FileUtils.WriteFileByBytes(System.IO.Path.Combine(Config.Instance.FullPath, fileName), this.btnScenePic.ImageBytes);
|
| | | HdlAutoBackupLogic.AddOrEditorFile(fileName);
|
| | | HdlBackupLogic.Current.AddOrEditorAutoBackFileStatu(fileName);
|
| | | this.cloneScene.IconPath = fileName;
|
| | | }
|
| | | }
|