Esempio n. 1
0
        public ApplicationViewModel(PIOServiceClient PIOClient, BotsRESTClient BotsClient, ITranslationModule TranslationModule) : base(PIOClient, BotsClient, TranslationModule)
        {
            ProduceOrders = new ProduceOrdersViewModel(PIOClient, BotsClient, TranslationModule, planetID);
            HarvestOrders = new HarvestOrdersViewModel(PIOClient, BotsClient, TranslationModule, planetID);
            BuildOrders   = new BuildOrdersViewModel(PIOClient, BotsClient, TranslationModule, planetID);

            Cells         = new CellsViewModel(PIOClient, BotsClient, TranslationModule, BuildOrders, planetID);
            Workers       = new WorkersViewModel(PIOClient, BotsClient, TranslationModule, planetID);
            Buildings     = new BuildingsViewModel(PIOClient, BotsClient, TranslationModule, ProduceOrders, HarvestOrders, planetID);
            MapItems      = new MapItemsViewModel();
            SelectedItems = new MapItemsViewModel();
        }
Esempio n. 2
0
 public CellsViewModel(PIOServiceClient PIOClient, BotsRESTClient BotsClient, ITranslationModule TranslationModule, BuildOrdersViewModel BuildOrdersViewModel, int PlanetID) : base(PIOClient, BotsClient, TranslationModule)
 {
     this.planetID             = PlanetID;
     this.buildOrdersViewModel = BuildOrdersViewModel;
 }
Esempio n. 3
0
 public CellViewModel(PIOServiceClient PIOClient, BotsRESTClient BotsClient, ITranslationModule TranslationModule, BuildOrdersViewModel BuildOrdersViewModel) : base(PIOClient, BotsClient, TranslationModule)
 {
     this.buildOrdersViewModel = BuildOrdersViewModel;
     CreateBuildOrderCommand   = new ViewModelCommand(CreateBuildOrderCommandCanExecute, CreateBuildOrderCommandExecute);
 }