From 31e484e5d3e42e825e43ef9d1707c1adc02a4e1c Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期五, 18 十二月 2020 19:57:34 +0800 Subject: [PATCH] 完成 dali 的 UI --- HDL_ON/UI/UI2/FuntionControlView/FunctionBaseInfoSetPageBLL.cs | 15 +++++++++++---- 1 files changed, 11 insertions(+), 4 deletions(-) diff --git a/HDL_ON/UI/UI2/FuntionControlView/FunctionBaseInfoSetPageBLL.cs b/HDL_ON/UI/UI2/FuntionControlView/FunctionBaseInfoSetPageBLL.cs old mode 100644 new mode 100755 index f5e5094..18fa6ea --- a/HDL_ON/UI/UI2/FuntionControlView/FunctionBaseInfoSetPageBLL.cs +++ b/HDL_ON/UI/UI2/FuntionControlView/FunctionBaseInfoSetPageBLL.cs @@ -32,10 +32,17 @@ }.Show(bodyView); return; } - - function.name = name; - btnFunctionName.Text = name; - function.SaveFunctionData(true); + if (function.name != name) + { + if(name.Contains("[\\ud800\\udc00-\\udbff\\udfff\\ud800-\\udfff]")) + { + HDLCommon.Current.ShowAlert(Language.StringByID(StringId.CannotEnterSpecialCharacters)); + return; + } + function.name = name; + btnFunctionName.Text = name; + function.SaveFunctionData(true); + } }; new PublicAssmebly().LoadDialog_EditParater(StringId.ChangeName, function.name, callBackAction,StringId.DeviceNameCannotBeEmpty,0,new System.Collections.Generic.List<string>()); }; -- Gitblit v1.8.0