示例#1
0
        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);
        }
示例#2
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();
        }
示例#3
0
 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;
 }