Beispiel #1
0
 private void ShowBarTable()
 {
     if (tabControlBarTable.TabPages.Count == 0)
     {
         barTable = BarTableModel.SelectAll();
         foreach (var bartables in barTable)
         {
             TabPage tabpage = new TabPage(bartables.Name);
             userbarTable            = new UserControlBarTable();
             userbarTable.barTableId = tabControlBarTable.TabPages.Count + 1;
             userbarTable.userId     = userId;
             tabpage.Controls.Add(userbarTable);
             this.tabControlBarTable.TabPages.Add(tabpage);
         }
     }
 }
 public static int Insert(BarTableModel table)
 {
     return(DBManager.InsertBarTable(table));
 }
Beispiel #3
0
 private void ShowBarTables()
 {
     barTable = BarTableModel.SelectAll();
     dataGridViewBarTables.DataSource = barTable;
 }