private void OnUnitDeselect() { SelectedUnit.Selected = false; Status = "Not selected"; SelectedUnit.Color = "white"; SelectedUnit.SelectedAditionalUnits = 0; ChooseUnitsViewModel.UpdateView(); }
private void OnUnitSelect() { SelectedUnit.Selected = true; Status = "Selected"; SelectedUnit.Color = "green"; SelectedUnit.SelectedAditionalUnits = NumberOfAdditionalModels; ChooseUnitsViewModel.UpdateView(); }
private void FunctionOnLoad() { ActiveView = this; SelectorTitle = ChoosenSelector.Name + " - " + ChoosenSelector.Date; PointsCurrent = 0; PointsLeft = 0; MandatoryListsList = LoadSelectorListByType(ChoosenSelector.Mandatory); HeadquartersListsList = LoadSelectorListByType(ChoosenSelector.Headquarters); InfantryListsList = LoadSelectorListByType(ChoosenSelector.Infantry); ArmouredCarsListsList = LoadSelectorListByType(ChoosenSelector.ArmouredCars); ArtilleryListsList = LoadSelectorListByType(ChoosenSelector.Artillery); TanksListsList = LoadSelectorListByType(ChoosenSelector.Tanks); TransportListsList = LoadSelectorListByType(ChoosenSelector.Transport); }