From f26d7b01a57fdb53dbe58ad355e3c45e3ec06d60 Mon Sep 17 00:00:00 2001 From: 陈嘉乐 <cjl@hdlchina.com.cn> Date: 星期五, 26 二月 2021 16:14:02 +0800 Subject: [PATCH] 2021-2-26-1 --- HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/AddControlComplete.cs | 18 ++++-------------- 1 files changed, 4 insertions(+), 14 deletions(-) diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/AddControlComplete.cs b/HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/AddControlComplete.cs index 9a682fe..5a50897 100644 --- a/HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/AddControlComplete.cs +++ b/HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/AddControlComplete.cs @@ -10,7 +10,7 @@ { Tag = "Pir"; } - public void Show() { + public void Show(Control control) { #region 鐣岄潰甯冨眬 this.BackgroundColor = CSS.CSS_Color.viewMiddle; PirDevice.View.TopView topView = new View.TopView(); @@ -74,7 +74,7 @@ namePatchView.frameLayout.Y = fenlei.frameLayout.Bottom; this.AddChidren(namePatchView.FLayoutView()); namePatchView.btnText1.TextID = StringId.yaokongqimingcheng; - namePatchView.btnText2.TextID = StringId.dianqi; + namePatchView.btnText2.Text = control.name; //鎵�灞炲尯鍩� View.PatchView quyuPatchView = new View.PatchView(); quyuPatchView.frameLayout.Y = namePatchView.frameLayout.Bottom; @@ -107,18 +107,8 @@ quyuPatchView.btnClick.MouseUpEventHandler += (sender, e) => { }; //缁х画娣诲姞鐐瑰嚮浜嬩欢 addBtn.MouseUpEventHandler += (sender, e) => { - View.TipView tipView = new View.TipView(); - tipView.InputBox("", (s) => - { - if (!string.IsNullOrEmpty(s)) - { - - AddButton addButton = new AddButton(); - MainPage.BasePageView.AddChidren(addButton); - addButton.Show(); - MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; - } - }); + Method method = new Method(); + method.AddControl(); }; //瀹屾垚鐐瑰嚮浜嬩欢 saveView.btnClick.MouseUpEventHandler += (sender, e) => { -- Gitblit v1.8.0