Пример #1
0
        void addTableItem_Click(object sender, EventArgs e)
        {
            List <object> tablesLeft = new List <object>();

            for (int i = 0; i < 45; i++)
            {
                if (!currentTablesHeap.HasTable((MetaDataTableType)i))
                {
                    tablesLeft.Add((MetaDataTableType)i);
                }
            }
            ComboBoxDlg dlg = new ComboBoxDlg("Select table to add.", "Add table", tablesLeft.ToArray());

            if (dlg.ShowDialog() == DialogResult.OK)
            {
                currentTablesHeap.AddTable((MetaDataTableType)dlg.SelectedObject);
            }
        }
Пример #2
0
 void addTableItem_Click(object sender, EventArgs e)
 {
     List<object> tablesLeft = new List<object>();
     for (int i =0;i < 45; i++)
         if (!currentTablesHeap.HasTable((MetaDataTableType)i))
             tablesLeft.Add((MetaDataTableType)i);
     ComboBoxDlg dlg = new ComboBoxDlg("Select table to add.", "Add table", tablesLeft.ToArray());
     if (dlg.ShowDialog() == DialogResult.OK)
     {
         currentTablesHeap.AddTable((MetaDataTableType)dlg.SelectedObject);
     }
 }