From 0d9f64668fd7350d6a21fd157e32009a96d98134 Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期三, 16 十二月 2020 13:09:08 +0800 Subject: [PATCH] 新云端代码Ver1.2 --- ZigbeeApp/Shared/Phone/Common/Logic/HdlSceneLogic.cs | 20 ++++++++++---------- 1 files changed, 10 insertions(+), 10 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlSceneLogic.cs b/ZigbeeApp/Shared/Phone/Common/Logic/HdlSceneLogic.cs similarity index 97% rename from ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlSceneLogic.cs rename to ZigbeeApp/Shared/Phone/Common/Logic/HdlSceneLogic.cs index 7dd4fc8..587c133 100644 --- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlSceneLogic.cs +++ b/ZigbeeApp/Shared/Phone/Common/Logic/HdlSceneLogic.cs @@ -5,7 +5,7 @@ using System.Threading.Tasks; using ZigBee.Device; -namespace Shared.Phone.UserCenter +namespace Shared.Phone { /// <summary> /// 鍦烘櫙鐨勯�昏緫 @@ -150,7 +150,7 @@ //鍔犲叆缂撳瓨 this.dicScenes[newScene.Id] = newScene; //澶囦唤 - HdlAutoBackupLogic.AddOrEditorFile(newScene.FileName); + HdlBackupLogic.Current.AddOrEditorAutoBackFileStatu(newScene.FileName); } } @@ -268,7 +268,7 @@ //娣诲姞鍦烘櫙澶辫触 string msg1 = Language.StringByID(R.MyInternationalizationString.AddSceneFail); //鎷兼帴涓娿�愮綉鍏冲洖澶嶈秴鏃躲�戠殑Msg - msg1 = UserCenterLogic.CombineGatewayTimeOutMsg(msg1, result); + msg1 = HdlCommonLogic.Current.CombineGatewayTimeOutMsg(msg1, result); this.ShowTipMsg(msg1); return null; } @@ -569,7 +569,7 @@ //鍒濆鍖栨墽琛岀洰鏍囧け璐� string msg1 = Language.StringByID(R.MyInternationalizationString.uInitAdjustTargetFail); //鎷兼帴涓娿�愮綉鍏冲洖澶嶈秴鏃躲�戠殑Msg - msg1 = UserCenterLogic.CombineGatewayTimeOutMsg(msg1, result); + msg1 = HdlCommonLogic.Current.CombineGatewayTimeOutMsg(msg1, result); this.ShowTipMsg(msg1); return false; } @@ -611,7 +611,7 @@ } var result1 = await Scene.RenameSceneAsync(scene.Id, newName); //鍏遍�氶敊璇娴� - string error = HdlCheckLogic.Current.CheckCommonErrorCode(result1); + string error = HdlCheckLogic.Current.CheckGatewayErrorCode(result1); if (error != null) { this.ShowErrorMsg(error); @@ -622,7 +622,7 @@ //淇敼鍦烘櫙鍚嶇О澶辫触 string msg1 = Language.StringByID(R.MyInternationalizationString.uEditorSceneNameFail); //鎷兼帴涓娿�愮綉鍏冲洖澶嶈秴鏃躲�戠殑Msg - msg1 = UserCenterLogic.CombineGatewayTimeOutMsg(msg1, result1); + msg1 = HdlCommonLogic.Current.CombineGatewayTimeOutMsg(msg1, result1); this.ShowTipMsg(msg1); return false; } @@ -674,7 +674,7 @@ if (Global.IsExistsByHomeId(sceneUI.FileName) == true) { Global.DeleteFilebyHomeId(sceneUI.FileName); - HdlAutoBackupLogic.DeleteFile(sceneUI.FileName); + HdlBackupLogic.Current.DeleteAutoBackFileStatu(sceneUI.FileName); } //鍒犻櫎鍥剧墖 if (sceneUI.IconPathType == 1 || sceneUI.IconPathType == 2) @@ -682,7 +682,7 @@ if (Global.IsExistsByHomeId(sceneUI.IconPath)) { Global.DeleteFilebyHomeId(sceneUI.IconPath); - HdlAutoBackupLogic.DeleteFile(sceneUI.IconPath); + HdlBackupLogic.Current.DeleteAutoBackFileStatu(sceneUI.IconPath); } } //鍒犻櫎鍦烘櫙鏃�,闇�瑕佸埛鏂颁富椤� @@ -925,7 +925,7 @@ //鎺у埗鍦烘櫙澶辫触 string msg = Language.StringByID(R.MyInternationalizationString.ControlSceneFail); //鎷兼帴涓娿�愮綉鍏冲洖澶嶈秴鏃躲�戠殑Msg - msg = UserCenterLogic.CombineGatewayTimeOutMsg(msg, result); + msg = HdlCommonLogic.Current.CombineGatewayTimeOutMsg(msg, result); HdlThreadLogic.Current.RunMain(() => { //璇ュ満鏅鍦ㄥ欢鏃讹紝璇风◢鍚� @@ -994,7 +994,7 @@ //鑾峰彇鎵ц鐩爣澶辫触 string msg = Language.StringByID(R.MyInternationalizationString.uGetAdjustTargetFail); //鎷兼帴涓娿�愮綉鍏冲洖澶嶈秴鏃躲�戠殑Msg - msg = UserCenterLogic.CombineGatewayTimeOutMsg(msg, result); + msg = HdlCommonLogic.Current.CombineGatewayTimeOutMsg(msg, result); this.ShowTipMsg(msg); return null; -- Gitblit v1.8.0