| | |
| | | topView.topNameBtn.TextID = StringId.shebeigaunli; |
| | | topView.topIconBtn.Visible = true; |
| | | this.AddChidren(topView.FLayoutView()); |
| | | topView.clickBackBtn.MouseUpEventHandler += (sender, e) => { |
| | | topView.clickBackBtn.MouseUpEventHandler += (sender, e) => |
| | | { |
| | | action(); |
| | | this.RemoveFromParent(); |
| | | }; |
| | |
| | | IsBold = true, |
| | | }; |
| | | devfLayout.AddChidren(stateTextBtn); |
| | | if (pirDevice.online) { |
| | | if (pirDevice.online) |
| | | { |
| | | stateIconBtn.IsSelected = true; |
| | | stateTextBtn.IsSelected = true; |
| | | } else { |
| | | } |
| | | else |
| | | { |
| | | stateIconBtn.IsSelected = false; |
| | | stateTextBtn.IsSelected = false; |
| | | } |
| | |
| | | } |
| | | delBtn.MouseUpEventHandler += (sender, e) => |
| | | { |
| | | |
| | | var Function = delBtn.Tag as Entity.Function; |
| | | string text = Language.StringByID(StringId.shanchushebei) + Function.name + "?"; |
| | | TipPopView tipPopView = new TipPopView(); |
| | | tipPopView.TipBox(StringId.tip, text, (dialog) => |
| | | { |
| | | //加载log |
| | | Loading loading = new Loading(); |
| | | this.AddChidren(loading); |
| | | dialog.AddChidren(loading); |
| | | HDL_ON.DAL.Server.ResponsePackNew responsePackNew = null; |
| | | loading.Start(); |
| | | new System.Threading.Thread(() => |
| | |
| | | { |
| | | if (responsePackNew != null && responsePackNew.Code == "0" && responsePackNew.Data.ToString() != "") |
| | | { |
| | | dialog.Close(); |
| | | var function = pirDevice.FunctioList.Find((c)=>c.sid== Function.sid); |
| | | if (function != null) |
| | | { |
| | |
| | | } |
| | | UIView(vv); |
| | | } |
| | | |
| | | else |
| | | { |
| | | Method method = new Method(); |
| | |
| | | |
| | | }) |
| | | { IsBackground = true }.Start(); |
| | | }, () => { }, false); |
| | | }; |
| | | EventHandler<MouseEventArgs> editClick = (sender, e) => |
| | | { |
| | |
| | | areaBtn.MouseUpEventHandler += editClick; |
| | | nextIconBtn.MouseUpEventHandler += editClick; |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | | } |
| | |
| | | methodView.EditControlName(StringId.xiugaimingzi, list, pirclick.name, (name, view) => |
| | | { |
| | | pirclick.name = name; |
| | | HDL_ON.DAL.Server.ResponsePackNew responsePackNew = null; |
| | | //加载log |
| | | Loading loading = new Loading(); |
| | | view.AddChidren(loading); |
| | | HDL_ON.DAL.Server.ResponsePackNew responsePackNew = null; |
| | | loading.Start(); |
| | | new System.Threading.Thread(() => |
| | | { |
| | |
| | | |
| | | }) |
| | | { IsBackground = true }.Start(); |
| | | },()=> { |
| | | }, () => |
| | | { |
| | | NewSwitchView(pirclick, vv); |
| | | },false); |
| | | |
| | |
| | | TipPopView tipPopView = new TipPopView(); |
| | | tipPopView.TipBox(StringId.tip, text, (dialog) => |
| | | { |
| | | HDL_ON.DAL.Server.ResponsePackNew responsePackNew = null; |
| | | //加载log |
| | | Loading loading = new Loading(); |
| | | dialog.AddChidren(loading); |
| | | HDL_ON.DAL.Server.ResponsePackNew responsePackNew = null; |
| | | loading.Start(); |
| | | new System.Threading.Thread(() => |
| | | { |