public Logon() { InitializeComponent(); sqlDao = new SQLdb_DAO(); this.lb_err.Text = ""; }
public void SetDaoAndTable(MDB_DAO mdb, SQLdb_DAO sql, string src, string dst) { mdbDao = mdb; sqlDao = sql; srcTable = src; dstTable = dst; }
private void mainframe_Load(object sender, EventArgs e) { sqlDao = new SQLdb_DAO(); /* ICollection<String> dbs = sqlDao.GetAllDatabases(); //读取数据库名 foreach (String dbName in dbs) { this.cbSQLDB.Items.Add(dbName); } */ /* 修改注册表,增加ACCESS记录操作数量 */ UpdateMdbReg(); this.cbSQLDB.Items.Add("StateGrid"); this.cmbSqlTables.Visible = false; //this.cmbSqlTables.SelectedIndexChanged += new EventHandler(cmbSqlTables_SelectedIndexChanged); this.dgvMdb.Controls.Add(this.cmbSqlTables); this.dgvMdb.ReadOnly = true; }