| | |
| | | UserMiddle.SettingView.AddChidren (btTopNull); |
| | | #endregion |
| | | |
| | | |
| | | |
| | | #region ---进入后台---DeviceManagementView--- |
| | | if (true) {//调试账号 |
| | | //if (MainPage.LoginUser.AccountType == 0) {//调试账号 |
| | |
| | | //UserMiddle.SettingView.AddChidren (btnNullWarningMsg); |
| | | #endregion |
| | | |
| | | #region ---Schedule--- |
| | | #region ---Schedule--- |
| | | FrameLayout ScheduleView = new FrameLayout () { |
| | | Width = Application.GetRealWidth (640), |
| | | Height = Application.GetRealHeight (100), |
| | | BackgroundColor = SkinStyle.Current.ViewColor |
| | | }; |
| | | UserMiddle.SettingView.AddChidren (ScheduleView); |
| | | Button btnScheduleIcon = new Button () { |
| | | X = Application.GetRealWidth (30), |
| | | Gravity = Gravity.CenterVertical, |
| | |
| | | Height = Application.GetRealHeight (5), |
| | | BackgroundColor = SkinStyle.Current.MainColor |
| | | }; |
| | | UserMiddle.SettingView.AddChidren (btnNullSchedule); |
| | | |
| | | #endregion |
| | | |
| | | |
| | |
| | | Height = Application.GetRealHeight (100), |
| | | BackgroundColor = SkinStyle.Current.ViewColor |
| | | }; |
| | | UserMiddle.SettingView.AddChidren (AlexaView); |
| | | Button btnAlexaIcon = new Button () { |
| | | X = Application.GetRealWidth (30), |
| | | Gravity = Gravity.CenterVertical, |
| | |
| | | Height = Application.GetRealHeight (5), |
| | | BackgroundColor = SkinStyle.Current.MainColor |
| | | }; |
| | | UserMiddle.SettingView.AddChidren (btnNullAlexa); |
| | | #endregion |
| | | |
| | | #region subaccount |
| | |
| | | Height = Application.GetRealHeight (100), |
| | | BackgroundColor = SkinStyle.Current.ViewColor |
| | | }; |
| | | UserMiddle.SettingView.AddChidren (subaccountView); |
| | | Button btnSubaccountIcon = new Button () { |
| | | X = Application.GetRealWidth (30), |
| | | Gravity = Gravity.CenterVertical, |
| | |
| | | TextColor = SkinStyle.Current.TextColor1, |
| | | }; |
| | | subaccountView.AddChidren (btnSubaccountTitle); |
| | | |
| | | Button btnNullSubaccount = new Button () { |
| | | Height = Application.GetRealHeight (5), |
| | | BackgroundColor = SkinStyle.Current.MainColor |
| | | }; |
| | | UserMiddle.SettingView.AddChidren (btnNullSubaccount); |
| | | |
| | | |
| | | EventHandler<MouseEventArgs> SubaccountEventHandler = (sender, e) => { |
| | | if (UserConfig.Instance.CurrentRegion.IsOthreShare) { |
| | |
| | | #endregion |
| | | |
| | | |
| | | if (!UserConfig.Instance.CurrentRegion.IsOthreShare) { |
| | | //主账号开放该功能; |
| | | UserMiddle.SettingView.AddChidren (ScheduleView); |
| | | UserMiddle.SettingView.AddChidren (btnNullSchedule); |
| | | UserMiddle.SettingView.AddChidren (AlexaView); |
| | | UserMiddle.SettingView.AddChidren (btnNullAlexa); |
| | | UserMiddle.SettingView.AddChidren (subaccountView); |
| | | UserMiddle.SettingView.AddChidren (btnNullSubaccount); |
| | | } |
| | | |
| | | //主账号开放该功能; |
| | | |
| | | #region ---help--- |
| | | var helpView = new FrameLayout () { |
| | | Width = Application.GetRealWidth (640), |
| | |
| | | #endregion |
| | | |
| | | |
| | | |
| | | |
| | | Button btnNullSkin = new Button () { |
| | | Height = Application.GetRealHeight (5), |
| | | BackgroundColor = SkinStyle.Current.MainColor |