コード例 #1
0
        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);
            }
        }
コード例 #2
0
 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();
 }
コード例 #3
0
 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);
 }
コード例 #4
0
        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);
        }