public FrmMain() { InitializeComponent(); TxtQuery.CustomAction += BtnSubmitQuery_Click; SetupSyntaxHighlighting(); db = new DB338(UpdateAutoComplete); UpdateAutoComplete(); }
public FrmExportMessageBox(DB338 db, IntSchTable currentTable) { InitializeComponent(); this.db = db; this.currentTable = currentTable; InitializeComboBox(db, currentTable); SetUpButtons(); }
private void InitializeComboBox(DB338 db, IntSchTable currentTable) { List <IntSchTable> tablesToExport = new List <IntSchTable>(); if (currentTable != null) { tablesToExport.Add(currentTable); } List <IntSchTable> dbTables = db.GetTables(); foreach (IntSchTable table in dbTables) { tablesToExport.Add(table); } comboBox_ExportTables.DataSource = tablesToExport; comboBox_ExportTables.DisplayMember = "Name"; comboBox_ExportTables.DropDownStyle = ComboBoxStyle.DropDownList; }
public FrmMain() { InitializeComponent(); db = new DB338(); }