| | |
| | | } |
| | | } |
| | | break; |
| | | case SPK.SensorDoorWindow: { |
| | | case SPK.SensorDoorWindow: |
| | | { |
| | | LogicView.FunTypeView view = new LogicView.FunTypeView(); |
| | | view.btnText.TextID = StringId.kaiqiandbihe; |
| | | fLayout.AddChidren(view.FLayoutView()); |
| | | view.btnClick.MouseUpEventHandler += (sender, e) => |
| | | { |
| | | DeviceView(device, view.btnState, StringId.kaiqi , StringId.bihe); |
| | | DeviceView(device, view.btnState, StringId.kaiqi, StringId.bihe); |
| | | }; |
| | | if (edit) |
| | | { |
| | |
| | | break; |
| | | case SPK.SensoruUtrasonic: |
| | | { |
| | | |
| | | |
| | | LogicView.FunTypeView view = new LogicView.FunTypeView(); |
| | | view.btnText.TextID = StringId.yourenandwuren; |
| | | fLayout.AddChidren(view.FLayoutView()); |
| | |
| | | return; |
| | | } |
| | | LogicMethod.RemoveAllView(); |
| | | AddLogic addLogic = new AddLogic(); |
| | | MainPage.BasePageView.AddChidren(addLogic); |
| | | addLogic.Show(); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | |
| | | if (MainView.IsGatewayType) |
| | | { //A网关 |
| | | var addLogic = new AddLogic(); |
| | | MainPage.BasePageView.AddChidren(addLogic); |
| | | addLogic.Show(); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | } |
| | | else |
| | | { |
| | | //一端口网关 |
| | | var onePortAutomation = new OnePortAutomation(); |
| | | MainPage.BasePageView.AddChidren(onePortAutomation); |
| | | onePortAutomation.Show(); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | } |
| | | }; |
| | | |
| | | #endregion |
| | |
| | | value = "off"; |
| | | } |
| | | break; |
| | | case StringId.youren: |
| | | case StringId.kaiqi: |
| | | { |
| | | case StringId.youren: { |
| | | value = "true"; |
| | | } |
| | | break; |
| | | case StringId.wuren: |
| | | case StringId.wuren: { |
| | | value = "false"; |
| | | } |
| | | break; |
| | | case StringId.kaiqi: |
| | | { |
| | | value = "open"; |
| | | } |
| | | break; |
| | | case StringId.bihe: |
| | | { |
| | | value = "false"; |
| | | value = "close"; |
| | | } |
| | | break; |
| | | case StringId.zaixian: { |