| | |
| | | this.SavePirSensorData();
|
| | | });
|
| | | };
|
| | | //查看模板时,不允许编辑
|
| | | if (Common.Config.Instance.Home.IsShowTemplate == true)
|
| | | {
|
| | | btnSave.CanClick = false;
|
| | | }
|
| | | }
|
| | |
|
| | | #endregion
|
| | |
| | | row1.ButtonClickEvent += (sender, e) =>
|
| | | {
|
| | | var form = new BottomItemSelectForm();
|
| | | form.AddForm(btnCaption1.Text, listSelect, this.pirConfigure.mode == 0 ? 1 : 0);
|
| | | form.AddForm(btnCaption1.Text, listSelect, null, this.pirConfigure.mode == 0 ? 1 : 0);
|
| | | form.FinishSelectEvent += (value) =>
|
| | | {
|
| | | this.isDataChanged = true;
|
| | |
| | | this.pirConfigure.mode = value == 0 ? 1 : 0;
|
| | | };
|
| | | };
|
| | | //查看模板时,不允许编辑
|
| | | if (Common.Config.Instance.Home.IsShowTemplate == true)
|
| | | {
|
| | | row1.CanClick = false;
|
| | | }
|
| | | }
|
| | |
|
| | | #endregion
|
| | |
| | | row2.ButtonClickEvent += (sender, e) =>
|
| | | {
|
| | | var form = new BottomItemSelectForm();
|
| | | form.AddForm(btnCaption2.Text, listSelect, this.pirConfigure.type);
|
| | | form.AddForm(btnCaption2.Text, listSelect, null, this.pirConfigure.type);
|
| | | form.FinishSelectEvent += (value) =>
|
| | | {
|
| | | this.isDataChanged = true;
|
| | |
| | | }
|
| | | };
|
| | | };
|
| | | //查看模板时,不允许编辑
|
| | | if (Common.Config.Instance.Home.IsShowTemplate == true)
|
| | | {
|
| | | row2.CanClick = false;
|
| | | }
|
| | | }
|
| | |
|
| | | #endregion
|
| | |
| | | Language.StringByID(R.MyInternationalizationString.uFinish),
|
| | | Language.StringByID(R.MyInternationalizationString.uCancel));
|
| | | };
|
| | | //查看模板时,不允许编辑
|
| | | if (Common.Config.Instance.Home.IsShowTemplate == true)
|
| | | {
|
| | | row3.CanClick = false;
|
| | | }
|
| | | }
|
| | |
|
| | | #endregion
|