| | |
| | | { |
| | | Tag = "Pir"; |
| | | } |
| | | public void Show() { |
| | | public void Show(Control control) { |
| | | #region 界面布局 |
| | | this.BackgroundColor = CSS.CSS_Color.viewMiddle; |
| | | PirDevice.View.TopView topView = new View.TopView(); |
| | |
| | | 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; |
| | |
| | | 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) => { |