public ConfigMannagerForm() { InitializeComponent(); string apppath = Path.GetDirectoryName(Application.ExecutablePath); this.mdbPath = apppath + "\\" + mdbFileName; this.cfgMannager = new ConfigMannager(mdbPath); this.displayAllConfig(); }
private void fullcbFanAn() { string apppath = Path.GetDirectoryName(Application.ExecutablePath); string mdbPath = apppath + "\\config.mdb"; cfm = new ConfigMannager(mdbPath); FanAn = cfm.selectAllConfig(); foreach (DataRow dr in FanAn.Rows) { cbFanAn.Items.Add(dr["name"].ToString()); } }