public BuildingViewModel(PIOServiceClient PIOClient, BotsRESTClient BotsClient, ITranslationModule TranslationModule, ProduceOrdersViewModel ProduceOrdersViewModel, HarvestOrdersViewModel HarvestOrderViewModels) : base(PIOClient, BotsClient, TranslationModule) { this.produceOrdersViewModel = ProduceOrdersViewModel; this.harvestOrderViewModels = HarvestOrderViewModels; CreateProduceOrderCommand = new ViewModelCommand(CreateProduceOrderCommandCanExecute, CreateProduceOrderCommandExecute); CreateHarvestOrderCommand = new ViewModelCommand(CreateHarvestOrderCommandCanExecute, CreateHarvestOrderCommandExecute); }
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(); }
public BuildingsViewModel(PIOServiceClient PIOClient, BotsRESTClient BotsClient, ITranslationModule TranslationModule, ProduceOrdersViewModel ProduceOrdersViewModel, HarvestOrdersViewModel HarvestOrderViewModels, int PlanetID) : base(PIOClient, BotsClient, TranslationModule) { this.planetID = PlanetID; this.produceOrdersViewModel = ProduceOrdersViewModel; this.harvestOrderViewModels = HarvestOrderViewModels; }