public CreateMapViewModels(Models.Entity.Map map, Window selfWindow, Action callback) { _map = map; self = selfWindow; CallBackFunction = new CreateCallBackHandler(callback); ExecuteConfirmAndCreateMapCommand = new DelegateCommand(ExecuteConfirmAndCreateMapCommandDo, CanExecuteConfirmAndCreateMapCommandDo); }
public ModifyMapInformationViewModels(Models.Entity.Map map, Window self, MainStatusCallBack mainStatusCallBack) { this._map = map; this._self = self; this.mainStatusCallBack = mainStatusCallBack; ExecuteMapInformationSaveCommand = new DelegateCommand(ExecuteMapInformationSaveCommandDo, CanExecuteMapInformationSaveCommandDo); InitialInformations(); }
public AddZonesViewModels(Models.Entity.Map map, Window selfWindow) { ExecuteAddZonesCommand = new DelegateCommand(ExecuteAddZonesCommandDo); ExecuteRestCommand = new DelegateCommand(ExecuteRestCommandDo); this._map = map; this._self = selfWindow; }
public ModifySelectedStorageViewModels2(Models.Entity.Map map, List <SingleGridMapItemViewModels> selectedList, Window self, RefreshGridColorCallBack refreshGridColorCallBack, MainStatusCallBack mainStatusCallBack) { this.SelectedStorages = selectedList; this._map = map; this._self = self; this.refreshGridColorCallBack = refreshGridColorCallBack; this.mainStatusCallBack = mainStatusCallBack; ExecuteModifySelectedStorageCommand = new DelegateCommand(ExecuteModifySelectedStorageCommandDo, CanExecuteModifySelectedStorageCommandDo); }
private void ExecuteConfirmAndCreateMapCommandDo() { Models.Service.IMapSingletonService mapSingletonService = Models.Service.MapSingletonService.Instance; _map = mapSingletonService.CreateNewMap(MapName, _layerCount, _rackCount, _columnCount); MessageBoxResult confirmToDel = MessageBox.Show(Localiztion.Resource.CreateMap_Complete); if (confirmToDel == MessageBoxResult.OK) { CallBackFunction(); self.Close(); } }
public StaticZonesViewModels(Models.Entity.Map map, Window selfWindow) { ExecuteEditGoodsTypesCommand = new DelegateCommand(ExecuteEditGoodsTypesCommandDo); ExecuteDeleteGoodsTypesCommand = new DelegateCommand(ExecuteDeleteGoodsTypesCommandDo, CanExecuteDeleteGoodsTypesCommandDo); ExecuteSaveAllCommand = new DelegateCommand(ExecuteSaveAllCommandDo, CanExecuteSaveAllCommandDo); this._map = map; this._self = selfWindow; ZoneTypes = new ObservableCollection <ZonesViewModels>(); foreach (Models.Entity.Zone z in _map.Zones) { ZoneTypes.Add(new ZonesViewModels(z)); } Inti(); }
public EditSelectedStorageTypeViewModels(Models.Entity.Map map, Window self, List <SingleGridMapItemViewModels> SelectedMapItemsss, RefreshCallBack refreshCallbackFunc, SetStatusStringErasing msgCallBackFunc) { this._map = map; this._self = self; this._selectedMapItems = SelectedMapItemsss; this._refreshCallBack = refreshCallbackFunc; this._setMessageCallBack = msgCallBackFunc; this.Zones.AddRange(this._map.Zones); if (this.Zones.Count != 0) { SelectedZoneIndex = 0; } ExecuteSaveEditSelectedStorageZoneTypeCommand = new DelegateCommand(ExecuteSaveEditSelectedStorageZoneTypeCommandDo); }