| | |
| | | btnZhezhao.Height = btnScenePic.Height;
|
| | | btnZhezhao.Y = btnScenePic.Y;
|
| | | btnZhezhao.Gravity = Gravity.CenterHorizontal;
|
| | | btnZhezhao.Radius = btnScenePic.Radius;
|
| | | btnZhezhao.Radius = (uint)Application.GetRealHeight(17);
|
| | | btnZhezhao.BackgroundColor = UserCenterColor.Current.PictrueZhezhaoColor;
|
| | | framePicBack.AddChidren(btnZhezhao);
|
| | |
|
| | | //分享的场景不能编辑
|
| | |
| | | var btnEditor = rowDevice.AddEditorControl();
|
| | | btnEditor.ButtonClickEvent += (sender, e) =>
|
| | | {
|
| | | //隐藏右滑菜单
|
| | | rowDevice.HideMenu();
|
| | | if (device.Type == DeviceType.DimmableLight//调光器
|
| | | || device.Type == DeviceType.ColorDimmableLight)//彩灯
|
| | | {
|
| | |
| | | var btnEditor = rowDelay.AddEditorControl();
|
| | | btnEditor.ButtonClickEvent += (sender, e) =>
|
| | | {
|
| | | //隐藏右滑菜单
|
| | | rowDelay.HideMenu();
|
| | | //延时时间选择
|
| | | var form = new AdjustTargetAddDelayTimeForm();
|
| | | form.AddForm(data.DelayTime);
|
| | |
| | | //默认图库
|
| | | menuContr.AddMenu(Language.StringByID(R.MyInternationalizationString.LocalPicture), () =>
|
| | | {
|
| | | var localPic = new Device.Room.AddRoomSelectPicByLocal();
|
| | | UserView.HomePage.Instance.AddChidren(localPic);
|
| | | UserView.HomePage.Instance.PageIndex += 1;
|
| | | localPic.Show();
|
| | | localPic.action = (imgPath) =>
|
| | | var form = new SelectLocalSceneImageForm();
|
| | | form.AddForm();
|
| | | form.FinishSelectEvent = (imgPath) =>
|
| | | {
|
| | | if (string.IsNullOrEmpty(imgPath) == true)
|
| | | {
|