private void ChangeArea() { Model.Room room = roomController.GetByIdRoom(int.Parse(renovationSeparation.cbRooms.SelectedItem.ToString())); room.Area -= double.Parse(tbuArea.Text); roomController.UpdateRoom(room.RoomId, room.Description, room.Area, room.RoomType); renovationSeparation.LoadArea(); }
private void btMerge_Click(object sender, RoutedEventArgs e) { Model.Room room = roomController.GetByIdRoom(int.Parse(cbRooms.SelectedItem.ToString())); if (checkFloor(room.Floor)) { lvDataBindingRooms.Items.Add(room); LoadArea(); LoadFloor(); } }
public void LoadArea() { Model.Room room = roomController.GetByIdRoom(int.Parse(cbRooms.SelectedItem.ToString())); lbArea.Content = room.Area; lbFloor.Content = room.Floor; }