Beispiel #1
0
 private void ShowRooms()
 {
     if (this.tabControlRooms.TabPages.Count == 0)
     {
         room = RoomModel.SelectAll();
         foreach (RoomModel r in room)
         {
             TabPage tabpage = new TabPage(r.Name);
             userControl        = new UserContrElems();
             userControl.RoomId = tabControlRooms.TabPages.Count + 1;
             userControl.UserId = userId;
             tabpage.Controls.Add(userControl);
             this.tabControlRooms.TabPages.Add(tabpage);
         }
     }
 }
Beispiel #2
0
 public static bool Update(RoomModel room)
 {
     return(DBManager.UpdateRoom(room));
 }
Beispiel #3
0
 public static int Insert(RoomModel room)
 {
     return(DBManager.InsertRoom(room));
 }
Beispiel #4
0
 private void ShowRooms()
 {
     room = RoomModel.SelectAll();
     dataGridViewRooms.DataSource = room;
 }