private void Button_CreateRoomState_Click(object sender, RoutedEventArgs e)
 {
     Window_RoomState window =
         new Window_RoomState
         (
             null,
             null,
             null,
             null,
             m_grid_rooms.RoomId.Value,
             (win) =>
             {
                 Window_RoomState wWin = win as Window_RoomState;
                 if (wWin != null)
                     GinTubBuilderManager.CreateRoomState(wWin.RoomStateTime.Value, wWin.LocationId.Value, m_grid_rooms.RoomId.Value);
             }
         );
     window.Show();
 }
 private void Button_UpdateRoomState_Click(object sender, RoutedEventArgs e)
 {
     Window_RoomState window =
         new Window_RoomState
         (
             m_userControl_roomState.RoomStateId,
             m_userControl_roomState.RoomStateState,
             m_userControl_roomState.RoomStateTime,
             m_userControl_roomState.LocationId,
             m_userControl_roomState.RoomId,
             (win) =>
             {
                 Window_RoomState wWin = win as Window_RoomState;
                 if (wWin != null)
                     GinTubBuilderManager.UpdateRoomState
                     (
                         wWin.RoomStateId.Value,
                         wWin.RoomStateState.Value,
                         wWin.RoomStateTime.Value,
                         wWin.LocationId.Value,
                         wWin.RoomId
                     );
             }
         );
     window.Show();
 }