Пример #1
0
 public UnitListViewModel(IUnitListModel unitListModel, IUnitSetupModel unitSetupModel, INavigationService navigationService)
 {
     _unitListModel               = unitListModel;
     _unitSetupModel              = unitSetupModel;
     _navigationService           = navigationService;
     _units                       = new ObservableCollection <UnitInfoPaneViewModel>();
     _unitListModel.UnitsChanged += UnitListModelOnUnitsChanged;
     AddUnit                      = _navigationService.GetAddUnitRequest();
 }
Пример #2
0
 public UnitListViewModel(IUnitListModel unitListModel, IUnitSetupModel unitSetupModel, INavigationService navigationService)
 {
     _unitListModel = unitListModel;
     _unitSetupModel = unitSetupModel;
     _navigationService = navigationService;
     _units = new ObservableCollection<UnitInfoPaneViewModel>();
     _unitListModel.UnitsChanged += UnitListModelOnUnitsChanged;
     AddUnit = _navigationService.GetAddUnitRequest();
 }
Пример #3
0
 public UnitSetupModel(IUnitListModel unitListModel)
 {
     _selectedUnits = new Dictionary<SelectionSlot, IUnitModel>();
     unitListModel.UnitsChanged += UnitListModelOnUnitsChanged;
 }
Пример #4
0
 public AddUnitViewModel(IUnitListModel unitListModel, IStaticConfigurationController configurationController)
 {
     _unitListModel           = unitListModel;
     _configurationController = configurationController;
     _coordinatesValidation   = new HexCoordinatesValidation();
 }
Пример #5
0
 public UnitSetupModel(IUnitListModel unitListModel)
 {
     _selectedUnits              = new Dictionary <SelectionSlot, IUnitModel>();
     unitListModel.UnitsChanged += UnitListModelOnUnitsChanged;
 }
Пример #6
0
 public AddUnitViewModel(IUnitListModel unitListModel, IStaticConfigurationController configurationController)
 {
     _unitListModel = unitListModel;
     _configurationController = configurationController;
     _coordinatesValidation = new HexCoordinatesValidation();
 }