| | |
| | | }; |
| | | 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(); |
| | | } |
| | |
| | | }; |
| | | |
| | | //如果是成员隐藏编辑功能 |
| | | if (!DB_ResidenceData.Instance.CurrentRegion.IsOthreShare) |
| | | if (!DB_ResidenceData.Instance.CurrentRegion.isOtherShare) |
| | | { |
| | | contentView.AddChidren(btnSetting); |
| | | } |
| | |
| | | UnSelectedImagePath = "Public/FuncInfoSetIcon.png", |
| | | }; |
| | | //如果是成员隐藏编辑功能 |
| | | if (!DB_ResidenceData.Instance.CurrentRegion.IsOthreShare) |
| | | if (!DB_ResidenceData.Instance.CurrentRegion.isOtherShare) |
| | | { |
| | | contentView.AddChidren(btnSetting); |
| | | } |
| | |
| | | }; |
| | | |
| | | //如果是成员隐藏编辑功能 |
| | | if (!DB_ResidenceData.Instance.CurrentRegion.IsOthreShare) |
| | | if (!DB_ResidenceData.Instance.CurrentRegion.isOtherShare) |
| | | { |
| | | contentView.AddChidren(btnSetting); |
| | | } |
| | |
| | | |
| | | btnAddIcon.MouseUpEventHandler += (sender, e) => |
| | | { |
| | | callBack?.Invoke(); |
| | | addAction?.Invoke(); |
| | | }; |
| | | } |
| | | /// <summary> |
| | | /// 安防中心顶部栏 |
| | | /// </summary> |
| | | public void LoadTopView_ArmCenter(Action skipAction)//(Action callBack, Action action) |
| | | { |
| | | LoadTopView(); |
| | | //backAction = action; |
| | | |
| | | var btnAddIcon = new Button() |
| | | { |
| | | X = Application.GetRealWidth(337), |
| | | Y = Application.GetRealHeight(29), |
| | | Width = Application.GetMinRealAverage(28), |
| | | Height = Application.GetMinRealAverage(28), |
| | | UnSelectedImagePath = "FunctionIcon/ArmCenter/HistoryIcon.png", |
| | | }; |
| | | contentView.AddChidren(btnAddIcon); |
| | | |
| | | btnAddIcon.MouseUpEventHandler += (sender, e) => |
| | | { |
| | | skipAction?.Invoke(); |
| | | }; |
| | | } |
| | | } |