private void UpdateAutoComplete() { List <string> autoCompleteList = new List <string>() { "SELECT", "FROM", "WHERE", "VALUES", "UPDATE", "DELETE", "DROP", "INSERT", "MIN", "MAX", "COUNT", "SUM", "AVG" }; foreach (IntSchTable table in db.GetTables()) { autoCompleteList.Add(table.Name); } autocompleteMenu1.Items = autoCompleteList.ToArray(); }
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; }