| | |
| | | this.AddShardContentRow(rowShard);
|
| | |
|
| | | //一旦移除该家庭成员,他/她将无法使用该网关下所绑定的设备
|
| | | var btnNote1 = new NormalViewControl(613, 98, true);
|
| | | btnNote1.X = Application.GetRealWidth(246);
|
| | | btnNote1.Y = Application.GetRealHeight(1328);
|
| | | var btnNote1 = new NormalViewControl(613, 100, true);
|
| | | btnNote1.X = Application.GetRealWidth(248);
|
| | | btnNote1.Y = Application.GetRealHeight(1327);
|
| | | btnNote1.TextSize = 12;
|
| | | btnNote1.TextID = R.MyInternationalizationString.RemoveMenberAndDonotUserBindGatewayDevice;
|
| | | btnNote1.IsMoreLines = true;
|
| | |
| | |
|
| | | var btnIcon = new IconViewControl(58);
|
| | | btnIcon.X = Application.GetRealWidth(167);
|
| | | btnIcon.Y = Application.GetRealHeight(1328);
|
| | | btnIcon.Y = btnNote1.Y;
|
| | | btnIcon.UnSelectedImagePath = "Item/Tips.png";
|
| | | bodyFrameLayout.AddChidren(btnIcon);
|
| | |
|
| | |
| | |
|
| | | //开关
|
| | | var btnSwitch = row.AddMostRightSwitchIcon();
|
| | | if (this.memberInfo.IsAllowRemoteCtrl == true)
|
| | | {
|
| | | btnSwitch.IsSelected = true;
|
| | | }
|
| | | btnSwitch.ButtonClickEvent += (sender, e) =>
|
| | | {
|
| | | btnSwitch.IsSelected = !btnSwitch.IsSelected;
|
| | | HdlThreadLogic.Current.RunThread(async () =>
|
| | | {
|
| | | var pra = new
|
| | | {
|
| | | HouseDistributedMark = Common.Config.Instance.Home.Id,
|
| | | DistributedMark = this.memberInfo.DistributedMark,
|
| | | IsAllowRemoteCtrl = !btnSwitch.IsSelected
|
| | | };
|
| | | //打开进度条
|
| | | this.ShowProgressBar();
|
| | | var result = await UserCenterLogic.GetResultStatuByRequestHttps("ZigbeeUsers/ChangeSubAccountIsAllowRemoteCtrl", false, pra);
|
| | | //关闭进度条
|
| | | this.CloseProgressBar();
|
| | |
|
| | | if (result == false)
|
| | | {
|
| | | return;
|
| | | }
|
| | | this.memberInfo.IsAllowRemoteCtrl = !btnSwitch.IsSelected;
|
| | |
|
| | | Application.RunOnMainThread(() =>
|
| | | {
|
| | | btnSwitch.IsSelected = !btnSwitch.IsSelected;
|
| | | });
|
| | | });
|
| | | |
| | | };
|
| | | //底线
|
| | | row.AddBottomLine();
|