Example #1
0
        private void FrmAddRecord_Load(object sender, EventArgs e)
        {
            DBEngine Dbe = new DBEngine();

            MyDB = Dbe.OpenDatabase(FrmMain.GetPath);
            OpenDB.DisplayTables(CBOTables, MyDB);
        }
Example #2
0
 private void openDatabaseToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (txtPath.Text == "")
     {
         MessageBox.Show("You have to chose the database you want to open by clicking on browse...", "Missing step!", MessageBoxButtons.OK, MessageBoxIcon.Warning);
     }
     else
     {
         path = txtPath.Text;
         OpenDB f1 = new OpenDB();
         f1.ShowDialog();
     }
 }
Example #3
0
        private void BtnCreateDB_Click(object sender, EventArgs e)
        {
            SaveFileDlg.Filter = "FichierAccess|*.mdb|Tous fichiers|*.*";
            SaveFileDlg.ShowDialog();
            string Creationpath = SaveFileDlg.FileName;

            CreateDB(Creationpath);
            MessageBox.Show("The database has been created !", "Successful creation", MessageBoxButtons.OK, MessageBoxIcon.Information);
            getPath = Creationpath;
            OpenDB f1 = new OpenDB();

            f1.ShowDialog();
        }