| | |
| | | |
| | | #region ---数据接收--- |
| | | //if (MainPage.LoginUser.AccountType == 2 || MainPage.LoginUser.AccountString == @"464027401@qq.com") { |
| | | if (true) { |
| | | var DataReceptionView = new FrameLayout () { |
| | | Width = Application.GetRealWidth (640), |
| | | Height = Application.GetRealHeight (100), |
| | | BackgroundColor = SkinStyle.Current.ViewColor |
| | | }; |
| | | UserMiddle.SettingView.AddChidren (DataReceptionView); |
| | | //UserMiddle.SettingView.AddChidren (DataReceptionView); |
| | | var btnDataReceptionIcon = new Button () { |
| | | X = Application.GetRealWidth (30), |
| | | Gravity = Gravity.CenterVertical, |
| | |
| | | BackgroundColor = SkinStyle.Current.MainColor, |
| | | Height = Application.GetRealHeight (5) |
| | | }; |
| | | UserMiddle.SettingView.AddChidren (btnNull3); |
| | | } |
| | | //UserMiddle.SettingView.AddChidren (btnNull3); |
| | | #endregion |
| | | |
| | | |
| | | #region ---msg--- |
| | | //FrameLayout WarningMsgView = new FrameLayout () { |
| | |
| | | //UserMiddle.SettingView.AddChidren (btnNullWarningMsg); |
| | | #endregion |
| | | |
| | | #region ---同步设备--- |
| | | FrameLayout SyncDeviceView = new FrameLayout () { |
| | | Width = Application.GetRealWidth (640), |
| | | Height = Application.GetRealHeight (100), |
| | | BackgroundColor = SkinStyle.Current.ViewColor |
| | | }; |
| | | Button btnSyncDeviceIcon = new Button () { |
| | | X = Application.GetRealWidth (30), |
| | | Gravity = Gravity.CenterVertical, |
| | | Width = Application.GetRealWidth (75), |
| | | Height = Application.GetRealWidth (75), |
| | | UnSelectedImagePath = "CrabtreeAdd/Alexa.png", |
| | | }; |
| | | SyncDeviceView.AddChidren (btnSyncDeviceIcon); |
| | | |
| | | Button btnSyncDeviceTitle = new Button () { |
| | | X = Application.GetRealWidth (125), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextID = R.MyInternationalizationString.SyncToTheCloud, |
| | | //Text = "上传设备", |
| | | TextColor = SkinStyle.Current.TextColor1, |
| | | }; |
| | | SyncDeviceView.AddChidren (btnSyncDeviceTitle); |
| | | EventHandler<MouseEventArgs> SyncDeviceEventHandler = (sender, e) => { |
| | | //没绑定忘记提示先绑定网关,禁止跳转 |
| | | if (!UserConfig.Instance.CheckWhetherGatewayIdNotNull ()) { |
| | | Utlis.ShowAlertOnMainThread (Language.StringByID (R.MyInternationalizationString.PleaseBindTheGatewayFirst)); |
| | | return; |
| | | } |
| | | |
| | | HDLLinkUtlis.Current.OneclickUpload (); |
| | | }; |
| | | SyncDeviceView.MouseUpEventHandler += SyncDeviceEventHandler; |
| | | btnSyncDeviceIcon.MouseUpEventHandler += SyncDeviceEventHandler; |
| | | btnSyncDeviceTitle.MouseUpEventHandler += SyncDeviceEventHandler; |
| | | Button btnNullSyncDevice = new Button () { |
| | | Height = Application.GetRealHeight (5), |
| | | BackgroundColor = SkinStyle.Current.MainColor |
| | | }; |
| | | //UserMiddle.SettingView.AddChidren (btnNullSchedule); |
| | | #endregion |
| | | |
| | | #region ---Schedule--- |
| | | FrameLayout ScheduleView = new FrameLayout () { |
| | | Width = Application.GetRealWidth (640), |
| | |
| | | //UserMiddle.SettingView.AddChidren (btnNullSchedule); |
| | | #endregion |
| | | |
| | | |
| | | #region ---Alexa--- |
| | | FrameLayout AlexaView = new FrameLayout () { |
| | | Width = Application.GetRealWidth (640), |
| | |
| | | Gravity = Gravity.CenterVertical, |
| | | Width = Application.GetRealWidth (75), |
| | | Height = Application.GetRealWidth (75), |
| | | UnSelectedImagePath = "CrabtreeAdd/Alexa.png", |
| | | UnSelectedImagePath = "CrabtreeAdd/Speaker.png", |
| | | }; |
| | | AlexaView.AddChidren (btnAlexaIcon); |
| | | |
| | |
| | | |
| | | if (!UserConfig.Instance.CurrentRegion.IsOthreShare) { |
| | | //主账号开放该功能; |
| | | UserMiddle.SettingView.AddChidren (DataReceptionView); |
| | | UserMiddle.SettingView.AddChidren (btnNull3); |
| | | |
| | | UserMiddle.SettingView.AddChidren (SyncDeviceView); |
| | | UserMiddle.SettingView.AddChidren (btnNullSyncDevice); |
| | | |
| | | UserMiddle.SettingView.AddChidren (ScheduleView); |
| | | UserMiddle.SettingView.AddChidren (btnNullSchedule); |
| | | UserMiddle.SettingView.AddChidren (AlexaView); |