From 17fd00c16951b025952001c0d815203bb57bd4d9 Mon Sep 17 00:00:00 2001 From: Davin <591807572@qq.com> Date: 星期一, 31 七月 2023 18:41:38 +0800 Subject: [PATCH] Merge branch 'Dev-Branch' of http://59.41.255.150:6688/r/~wxr/OnPro into Dev-Branch --- HDL_ON/UI/UI2/FuntionControlView/VideoDoorLock/UnlockSettingPage.cs | 72 ++++++++++++++++++++++++----------- 1 files changed, 49 insertions(+), 23 deletions(-) diff --git a/HDL_ON/UI/UI2/FuntionControlView/VideoDoorLock/UnlockSettingPage.cs b/HDL_ON/UI/UI2/FuntionControlView/VideoDoorLock/UnlockSettingPage.cs index 0e082c7..b7ef627 100644 --- a/HDL_ON/UI/UI2/FuntionControlView/VideoDoorLock/UnlockSettingPage.cs +++ b/HDL_ON/UI/UI2/FuntionControlView/VideoDoorLock/UnlockSettingPage.cs @@ -338,6 +338,10 @@ { if (!string.IsNullOrEmpty(pack.message)) { + if (string.IsNullOrEmpty(pack.message)) + { + pack.message = Language.StringByID(StringId.OperationFailed); + } var tip = new Tip() { MaxWidth = Application.GetRealWidth(300), @@ -366,17 +370,18 @@ //澶辫触鎻愮ず Application.RunOnMainThread(() => { - if (!string.IsNullOrEmpty(pack.message)) + if (string.IsNullOrEmpty(pack.message)) { - var tip = new Tip() - { - MaxWidth = Application.GetRealWidth(300), - Text = $"{pack.message}({pack.Code})", - CloseTime = 3, - Direction = AMPopTipDirection.None - }; - tip.Show(MainPage.BaseView); + pack.message = Language.StringByID(StringId.OperationFailed); } + var tip = new Tip() + { + MaxWidth = Application.GetRealWidth(300), + Text = $"{pack.message}({pack.Code})", + CloseTime = 3, + Direction = AMPopTipDirection.None + }; + tip.Show(MainPage.BaseView); }); } #endregion @@ -403,17 +408,18 @@ //澶辫触鎻愮ず Application.RunOnMainThread(() => { - if (!string.IsNullOrEmpty(pack.message)) + if (string.IsNullOrEmpty(pack.message)) { - var tip = new Tip() - { - MaxWidth = Application.GetRealWidth(300), - Text = $"{pack.message}({pack.Code})", - CloseTime = 3, - Direction = AMPopTipDirection.None - }; - tip.Show(MainPage.BaseView); + pack.message = Language.StringByID(StringId.OperationFailed); } + var tip = new Tip() + { + MaxWidth = Application.GetRealWidth(300), + Text = $"{pack.message}({pack.Code})", + CloseTime = 3, + Direction = AMPopTipDirection.None + }; + tip.Show(MainPage.BaseView); }); } #endregion @@ -436,7 +442,11 @@ //澶辫触鎻愮ず Application.RunOnMainThread(() => { - if (!string.IsNullOrEmpty(pack.message)) + + if (string.IsNullOrEmpty(pack.message)) + { + pack.message = Language.StringByID(StringId.OperationFailed); + } { var tip = new Tip() { @@ -493,7 +503,11 @@ //澶辫触鎻愮ず Application.RunOnMainThread(() => { - if (!string.IsNullOrEmpty(pack.message)) + + if (string.IsNullOrEmpty(pack.message)) + { + pack.message = Language.StringByID(StringId.OperationFailed); + } { var tip = new Tip() { @@ -545,7 +559,11 @@ //澶辫触鎻愮ず Application.RunOnMainThread(() => { - if (!string.IsNullOrEmpty(pack.message)) + + if (string.IsNullOrEmpty(pack.message)) + { + pack.message = Language.StringByID(StringId.OperationFailed); + } { var tip = new Tip() { @@ -599,7 +617,11 @@ //澶辫触鎻愮ず Application.RunOnMainThread(() => { - if (!string.IsNullOrEmpty(pack.message)) + + if (string.IsNullOrEmpty(pack.message)) + { + pack.message = Language.StringByID(StringId.OperationFailed); + } { var tip = new Tip() { @@ -652,7 +674,11 @@ //澶辫触鎻愮ず Application.RunOnMainThread(() => { - if (!string.IsNullOrEmpty(pack.message)) + + if (string.IsNullOrEmpty(pack.message)) + { + pack.message = Language.StringByID(StringId.OperationFailed); + } { var tip = new Tip() { -- Gitblit v1.8.0