public ModifySelectedMapItemsTypesViewModels(List <SingleGridMapItemViewModels> SelectedMapItems, Models.Entity.Map map, Window selfWindow, RefreshCallback callback, MainStatusCallBack mainStatusCallBack, int SelectedLayer) { bool hasGoods = false; this.SelectedMapItems = SelectedMapItems; this.self = selfWindow; this._map = map; this.Types.AddRange(_map.Types); this.refreshCallback = callback; this.mainStatusCallBack = mainStatusCallBack; this.SelectedLayer = SelectedLayer; ExecuteSaveModifySelectedMapItemCommand = new DelegateCommand(ExecuteSaveModifySelectedMapItemCommandDo, CanExecuteSaveModifySelectedMapItemCommandDo); for (int i = 0; i < this.SelectedMapItems.Count; i++) { if (Models.Service.MapSingletonService.Instance.HasGood(SelectedMapItems[i].SingleStorage)) { hasGoods = true; break; } } if (hasGoods) { MessageBox.Show(Localiztion.Resource.ModifySelectedMapItem_Msg_AlertForGoodsInfo); } }
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 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); }
public ConfirmDialogueViewModels(List <SingleGridMapItemViewModels> SelectedMapItemsss, Models.Entity.Map map, Window selfWindow, RefreshCallback callback, MainStatusCallBack mainStatusCallBack ) { this.SelectedMapItems = SelectedMapItemsss; this.self = selfWindow; this._map = map; this.refreshCallback = callback; this.mainStatusCallBack = mainStatusCallBack; ExecuteSaveCommand = new DelegateCommand(ExecuteSaveCommandDo, CanExecuteSaveCommandDo); }