Exemplo n.º 1
0
        public FrmMain()
        {
            InitializeComponent();
            TxtQuery.CustomAction += BtnSubmitQuery_Click;
            SetupSyntaxHighlighting();
            db = new DB338(UpdateAutoComplete);

            UpdateAutoComplete();
        }
Exemplo n.º 2
0
        public FrmExportMessageBox(DB338 db, IntSchTable currentTable)
        {
            InitializeComponent();
            this.db           = db;
            this.currentTable = currentTable;

            InitializeComboBox(db, currentTable);
            SetUpButtons();
        }
Exemplo n.º 3
0
        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;
        }
Exemplo n.º 4
0
 public FrmMain()
 {
     InitializeComponent();
     db = new DB338();
 }