黄学彪
2020-12-17 9f326f4000847e6167d8166fa2f6a66f53cb3734
ZigbeeApp/Shared/Phone/Category/AddOrEditorSceneForm.cs
@@ -863,7 +863,7 @@
                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;
            }
            //转移属性
@@ -933,7 +933,7 @@
                {
                    //删除自定义图片
                    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)
                {
@@ -942,7 +942,7 @@
                    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;
                }
            }