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 + ">"; }
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+">"; }