| | |
| | | Height = Application.GetRealHeight(69), |
| | | Y = Application.GetRealHeight(92), |
| | | TextID = MyInternationalizationString.securitymode, |
| | | IsBold = true, |
| | | }; |
| | | topRowLayout.AddChidren(titleName); |
| | | |
| | |
| | | BackgroundColor = ZigbeeColor.Current.LogicBtnSaveBackgroundColor, |
| | | TextID = MyInternationalizationString.Save, |
| | | TextColor = ZigbeeColor.Current.LogicBtnSaveTextColor, |
| | | TextSize=16, |
| | | |
| | | }; |
| | | middle.AddChidren(btnsave); |
| | |
| | | } |
| | | else if (actions["SecuritySetting"].ToString() == "1") |
| | | { |
| | | if (actions["SecurityModeId"].ToString() == "1") { |
| | | athomedefenceSelected.Visible = true; |
| | | leavehomedefenceSelected.Visible = false; |
| | | withdrawalSelected.Visible = false; |
| | | urgentwithdrawalSelected.Visible = false; |
| | | } |
| | | else if (actions["SecuritySetting"].ToString() == "2") |
| | | { |
| | | athomedefenceSelected.Visible = false; |
| | | leavehomedefenceSelected.Visible = true; |
| | | withdrawalSelected.Visible = false; |
| | | urgentwithdrawalSelected.Visible = false; |
| | | |
| | | } |
| | | else { |
| | | athomedefenceSelected.Visible = false; |
| | | leavehomedefenceSelected.Visible = true; |
| | | withdrawalSelected.Visible = false; |
| | | urgentwithdrawalSelected.Visible = false; |
| | | } |
| | | } |
| | | break; |
| | | |
| | |
| | | { |
| | | if (!athomedefenceSelected.Visible && !leavehomedefenceSelected.Visible && !withdrawalSelected.Visible && !urgentwithdrawalSelected.Visible) |
| | | { |
| | | |
| | | var alert = new UserCenter.ShowMsgControl(UserCenter.ShowMsgType.Normal, |
| | | Language.StringByID(MyInternationalizationString.securitytip), |
| | | Language.StringByID(MyInternationalizationString.confrim)); |
| | | alert.Show(); |
| | | return; |
| | | } |
| | | |