| | |
| | | }; |
| | | contentView.AddChidren(btnBackIcon); |
| | | |
| | | btnBack = new Button() |
| | | { |
| | | Width = Application.GetRealWidth(100), |
| | | }; |
| | | contentView.AddChidren(btnBack); |
| | | |
| | | Button btnTilte = new Button() |
| | | { |
| | | Gravity = Gravity.CenterHorizontal, |
| | |
| | | contentView.AddChidren(btnTilte); |
| | | |
| | | |
| | | btnBack = new Button() |
| | | { |
| | | Width = Application.GetRealWidth(70), |
| | | }; |
| | | contentView.AddChidren(btnBack); |
| | | |
| | | LoadEventList(); |
| | | } |
| | | /// <summary> |
| | |
| | | LoadTopView(); |
| | | } |
| | | |
| | | public void LoadTopView_RoomTop(Action backAction ,Action editAction) |
| | | public void LoadTopView_RoomTop(Action backAction, Action editAction) |
| | | { |
| | | this.backAction = backAction; |
| | | |
| | |
| | | }; |
| | | |
| | | //如果是成员隐藏编辑功能 |
| | | if (!DB_ResidenceData.Instance.CurrentRegion.IsOthreShare) |
| | | if (!DB_ResidenceData.Instance.CurrentRegion.isOtherShare) |
| | | { |
| | | contentView.AddChidren(btnSetting); |
| | | } |
| | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 灯光功能列表界面 |
| | | /// 带组合调光编辑 |
| | | /// </summary> |
| | | /// <param name="backAction"></param> |
| | | /// <param name="editAction"></param> |
| | | public void LoadTopView_LightFunction( Action editAction) |
| | | { |
| | | LoadTopView(); |
| | | |
| | | var btnSetting = new Button() |
| | | { |
| | | X = Application.GetRealWidth(337), |
| | | Y = Application.GetRealHeight(29), |
| | | Width = Application.GetMinRealAverage(28), |
| | | Height = Application.GetMinRealAverage(28), |
| | | UnSelectedImagePath = "FunctionIcon/Light/LightScene/SetLightSceneIcon.png", |
| | | }; |
| | | |
| | | contentView.AddChidren(btnSetting); |
| | | btnSetting.MouseUpEventHandler = (sender, e) => |
| | | { |
| | | editAction(); |
| | | }; |
| | | } |
| | | |
| | | |
| | | |
| | | /// <summary> |
| | | /// 向framelayout添加顶部区域,拥有配置图标按钮 |
| | | /// </summary> |
| | | /// <param name="frame"></param> |
| | | /// <param name="tilte"></param> |
| | | public void LoadTopView_FunctionTop(Function function, Action action) |
| | | public void LoadTopView_FunctionTop(Function function, Action action,bool locationSet = true) |
| | | { |
| | | backAction = action; |
| | | |
| | |
| | | UnSelectedImagePath = "Public/FuncInfoSetIcon.png", |
| | | }; |
| | | //如果是成员隐藏编辑功能 |
| | | if (!DB_ResidenceData.Instance.CurrentRegion.IsOthreShare) |
| | | if (!DB_ResidenceData.Instance.CurrentRegion.isOtherShare) |
| | | { |
| | | contentView.AddChidren(btnSetting); |
| | | } |
| | |
| | | { |
| | | var infoView = new FunctionBaseInfoSetPage(function, action); |
| | | MainPage.BasePageView.AddChidren(infoView); |
| | | infoView.LoadPage(); |
| | | infoView.LoadPage(locationSet); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | }; |
| | | } |
| | |
| | | }; |
| | | |
| | | //如果是成员隐藏编辑功能 |
| | | if (!DB_ResidenceData.Instance.CurrentRegion.IsOthreShare) |
| | | if (!DB_ResidenceData.Instance.CurrentRegion.isOtherShare) |
| | | { |
| | | contentView.AddChidren(btnSetting); |
| | | } |
| | |
| | | /// <summary> |
| | | /// 楼层管理顶部栏 |
| | | /// </summary> |
| | | public void LoadTopView_FloorTopView(Action<string> callBack,Action action) |
| | | public void LoadTopView_FloorTopView(Action<string> callBack, Action action) |
| | | { |
| | | LoadTopView(); |
| | | |
| | |
| | | Height = Application.GetMinRealAverage(28), |
| | | UnSelectedImagePath = "FunctionIcon/ArmCenter/HistoryIcon.png", |
| | | }; |
| | | contentView.AddChidren(btnAddIcon); |
| | | //contentView.AddChidren(btnAddIcon); |
| | | |
| | | btnAddIcon.MouseUpEventHandler += (sender, e) => |
| | | { |