public UnitListViewModel(IUnitListModel unitListModel, IUnitSetupModel unitSetupModel, INavigationService navigationService) { _unitListModel = unitListModel; _unitSetupModel = unitSetupModel; _navigationService = navigationService; _units = new ObservableCollection <UnitInfoPaneViewModel>(); _unitListModel.UnitsChanged += UnitListModelOnUnitsChanged; AddUnit = _navigationService.GetAddUnitRequest(); }
public UnitListViewModel(IUnitListModel unitListModel, IUnitSetupModel unitSetupModel, INavigationService navigationService) { _unitListModel = unitListModel; _unitSetupModel = unitSetupModel; _navigationService = navigationService; _units = new ObservableCollection<UnitInfoPaneViewModel>(); _unitListModel.UnitsChanged += UnitListModelOnUnitsChanged; AddUnit = _navigationService.GetAddUnitRequest(); }
public UnitSetupModel(IUnitListModel unitListModel) { _selectedUnits = new Dictionary<SelectionSlot, IUnitModel>(); unitListModel.UnitsChanged += UnitListModelOnUnitsChanged; }
public AddUnitViewModel(IUnitListModel unitListModel, IStaticConfigurationController configurationController) { _unitListModel = unitListModel; _configurationController = configurationController; _coordinatesValidation = new HexCoordinatesValidation(); }
public UnitSetupModel(IUnitListModel unitListModel) { _selectedUnits = new Dictionary <SelectionSlot, IUnitModel>(); unitListModel.UnitsChanged += UnitListModelOnUnitsChanged; }