Commit e93197eb authored by 潘栩锋's avatar 潘栩锋 🚴

添加Address 密码

parent a8a6267a
...@@ -67,6 +67,9 @@ namespace FLY.Thick.Base.UI ...@@ -67,6 +67,9 @@ namespace FLY.Thick.Base.UI
private void Apply() private void Apply()
{ {
if (!WdPassword.Authorize("Address"))
return;
Regex regex = new Regex(@"(\d+)\.(\d+)\.(\d+)\.(\d+)\:(\d+)"); Regex regex = new Regex(@"(\d+)\.(\d+)\.(\d+)\.(\d+)\:(\d+)");
//检测地址格式 //检测地址格式
foreach(var ca in ConnAddrs) foreach(var ca in ConnAddrs)
...@@ -164,5 +167,6 @@ namespace FLY.Thick.Base.UI ...@@ -164,5 +167,6 @@ namespace FLY.Thick.Base.UI
/// 设备地址 /// 设备地址
/// </summary> /// </summary>
public string Address { get; set; } public string Address { get; set; }
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment