Exemple #1
0
 internal void Connect()
 {
     Disconnect();
     if (ConnectionString == null)
     {
         NewConnectionDialog dlg = new NewConnectionDialog();
         if (dlg.ShowDialog() != System.Windows.Forms.DialogResult.OK)
         {
             return;
         }
         ConnectionString = dlg.ConnectionString;
         Server           = dlg.Server;
         User             = dlg.User;
     }
     _connection.Open();
     connectionStatus.Text = "Connected to <" + Server + "> as user <" + User + ">";
 }
Exemple #2
0
 internal void Connect()
 {
     Disconnect();
     if (ConnectionString == null)
     {
         NewConnectionDialog dlg = new NewConnectionDialog();
         if (dlg.ShowDialog() != System.Windows.Forms.DialogResult.OK)
             return;
         ConnectionString = dlg.ConnectionString;
         Server = dlg.Server;
         User = dlg.User;
     }
     _connection.Open();
     connectionStatus.Text = "Connected to <"+Server+"> as user <"+User+">";
 }