Esempio n. 1
0
        // Adds a new building and calls to make a VM model for it, then adds it to list of buildings and updates UI
        public void AddBuilding()
        {
            BuildingEventArgs e = OnNewBuildingRequested();

            if (e != null)
            {
                VMBuilding b = new VMBuilding(ct.AddBuilding(e.Name));
                _selectedVMBuilding = b;
                BuildingsVM.Add(_selectedVMBuilding);
                OnItemsChanged(SelectedVMBuilding);
            }
            _selectedVMCustomer.AddBuilding(_selectedVMBuilding);
        }
Esempio n. 2
0
 public void AddBuilding(VMBuilding buildingVM)
 {
     _buildingsVM.Add(buildingVM);
 }