예제 #1
0
 private void OnUnitDeselect()
 {
     SelectedUnit.Selected = false;
     Status             = "Not selected";
     SelectedUnit.Color = "white";
     SelectedUnit.SelectedAditionalUnits = 0;
     ChooseUnitsViewModel.UpdateView();
 }
예제 #2
0
 private void OnUnitSelect()
 {
     SelectedUnit.Selected = true;
     Status             = "Selected";
     SelectedUnit.Color = "green";
     SelectedUnit.SelectedAditionalUnits = NumberOfAdditionalModels;
     ChooseUnitsViewModel.UpdateView();
 }
예제 #3
0
        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);
        }