Example #1
0
 void BtnNewDBClick(object sender, EventArgs e)
 {
     try
     {
         NewDBForm f = new NewDBForm();
         if (f.ShowDialog() == DialogResult.OK)
         {
             mDB.CreateDatabase(txtServer.Text, f.DBName);
             StatusBar.Items[0].Text = "Created database '" + f.DBName + "'";
         }
     }
     catch (Exception ex)
     {
         StatusBar.Items[0].Text = ex.Message;
     }
     RefreshDatabaseList();
     UpdateGreys();
 }
Example #2
0
 void BtnNewDBClick(object sender, EventArgs e)
 {
     try
     {
         NewDBForm f=new NewDBForm();
         if(f.ShowDialog()==DialogResult.OK)
         {
             mDB.CreateDatabase(txtServer.Text,f.DBName);
             StatusBar.Items[0].Text="Created database '"+f.DBName+"'";
         }
     }
     catch(Exception ex)
     {
         StatusBar.Items[0].Text=ex.Message;
     }
     RefreshDatabaseList();
     UpdateGreys();
 }