| | |
| | | }; |
| | | contentView.AddChidren(btnBackIcon); |
| | | |
| | | btnBack = new Button() |
| | | { |
| | | Width = Application.GetRealWidth(50), |
| | | //BackgroundColor = CSS_Color.AuxiliaryColor2, |
| | | }; |
| | | 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); |
| | | } |
| | |
| | | var btnSetting = new Button() |
| | | { |
| | | X = Application.GetRealWidth(337), |
| | | Y = Application.GetRealHeight(29), |
| | | Width = Application.GetMinRealAverage(28), |
| | | Height = Application.GetMinRealAverage(28), |
| | | Y = Application.GetRealHeight(28), |
| | | Width = Application.GetMinRealAverage(32), |
| | | Height = Application.GetMinRealAverage(32), |
| | | 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) => |
| | | { |
| | | LoadEvent_AddEvent(type, callBack); |
| | | if (type == "floors") |
| | | { |
| | | Action<string> callBackAction = (floorName) => |
| | | { |
| | | callBack("add", floorName); |
| | | }; |
| | | string newFloorName = "1F"; |
| | | for (int i = 0; i < SpatialInfo.CurrentSpatial.FloorList.Count + 1;) |
| | | { |
| | | newFloorName = ++i + "F"; |
| | | if (null == SpatialInfo.CurrentSpatial.FloorList.Find((obj) => obj.roomName == newFloorName)) |
| | | { |
| | | break; |
| | | } |
| | | } |
| | | var fs = new List<string>(); |
| | | foreach (var f in SpatialInfo.CurrentSpatial.FloorList) |
| | | { |
| | | fs.Add(f.roomName); |
| | | } |
| | | new PublicAssmebly().LoadDialog_EditParater(StringId.AddFloors, newFloorName, callBackAction, StringId.FloorNameCannotBeEmpty, |
| | | StringId.AddFloorFailed_FloorAlreadyExist, fs); |
| | | } |
| | | else |
| | | { |
| | | callBack("", ""); |
| | | } |
| | | }; |
| | | } |
| | | |
| | |
| | | |
| | | 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(); |
| | | }; |
| | | } |
| | | } |