public MergeRenovationDTO(BaseRenovationDTO baseRenovation, int secondRoomId, string newRoomDescription, TypeOfMapObject roomType) { this.baseRenovation = baseRenovation; SecondRoomId = secondRoomId; NewRoomDescription = newRoomDescription; RoomType = roomType; }
public DivideRenovationDTO(BaseRenovationDTO baseRenovation, string firstRoomDescription, string secondRoomDescription, TypeOfMapObject firstRoomType, TypeOfMapObject secondRoomType) { this.baseRenovation = baseRenovation; FirstRoomDescription = firstRoomDescription; SecondRoomDescription = secondRoomDescription; FirstRoomType = firstRoomType; SecondRoomType = secondRoomType; }
public Room(TypeOfMapObject mapObjectType, DepartmentOfMapObject department, MapObject building, int floor, String description = "") : base(mapObjectType, description) { Department = new MapObjectDepartment(department); Floor = floor; BuildingId = building.MapObjectEntity.Id; FormatObjectDescription(Description); }
private MergeRenovationDTO CreateMergeRenovationDTOFromUserInput(BaseRenovationDTO baseRenovationDTO) { baseRenovationDTO.TypeOfRenovation = TypeOfRenovation.MERGE_RENOVATION; int secondRoomId = (int)((MapObject)SecondRoomForMergingComboBox.SelectedItem).MapObjectEntity.Id; string mergedRoomDescription = MergedRoomDescriptionTextBox.Text; TypeOfMapObject mergedRoomType = (TypeOfMapObject)MergedRoomTypeComboBox.SelectedItem; return(new MergeRenovationDTO(baseRenovationDTO, secondRoomId, mergedRoomDescription, mergedRoomType)); }
private DivideRenovationDTO CreateDivideRenovationDTOFromUserInput(BaseRenovationDTO baseRenovationDTO) { baseRenovationDTO.TypeOfRenovation = TypeOfRenovation.DIVIDE_RENOVATION; string firstRoomDescription = RenovationFirstRoomDescriptionTextBox.Text; string secondRoomDescription = RenovationSecondRoomDescriptionTextBox.Text; TypeOfMapObject firstRoomType = (TypeOfMapObject)RenovationFirstRoomTypeComboBox.SelectedItem; TypeOfMapObject secondRoomType = (TypeOfMapObject)RenovationSecondRoomTypeComboBox.SelectedItem; return(new DivideRenovationDTO(baseRenovationDTO, firstRoomDescription, secondRoomDescription, firstRoomType, secondRoomType)); }
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { TypeOfMapObject typeOfSelectedObject = (TypeOfMapObject)value; if (CheckIsRoomType(typeOfSelectedObject)) { return(Visibility.Visible); } else { return(Visibility.Collapsed); } }
private Boolean CheckIsRoomType(TypeOfMapObject typeOfMapObject) => typeOfMapObject == TypeOfMapObject.EXAMINATION_ROOM || typeOfMapObject == TypeOfMapObject.HOSPITALIZATION_ROOM || typeOfMapObject == TypeOfMapObject.OPERATION_ROOM;
public RoomDTO(long id, TypeOfMapObject usage) { this.Id = id; this.Usage = usage; }
public MapObjectType(TypeOfMapObject mapObjectType) { TypeOfMapObject = mapObjectType; }
public MapObjectEntity(TypeOfMapObject mapObjectType, string description = "") : base() { MapObjectType = new MapObjectType(mapObjectType); Description = description; }