public HospitalMapPage() { InitializeComponent(); CanvasService.AddObjectToCanvas(mapObjectController.GetOutterMapObjects(), canvas); canvasHospitalMap = canvas; SetComponentsVisibility(); }
public BuildingPage(int id, int selectedFloor = 0) { InitializeComponent(); this.id = id; this.selectedFloor = selectedFloor; List <MapObject> mapObjectsInBuilding = new MapObjectController().GetAllBuildingMapObjects(id); InsertMapObjectsToFloor(mapObjectsInBuilding); SetFloorComboBox(mapObjectsInBuilding); SetFloorLegend(); CanvasService.AddObjectToCanvas(floor.GetAllFloorMapObjects(), canvas); }