Пример #1
0
 /// <summary>
 /// Show the connection settings dialogue
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void ConnectionSettingsCommand(object sender, EventArgs e)
 {
     _connectionSettingsWindow = new ConnectionSettingsWindow();
     if (_connectionSettingsWindow.ShowDialog() == true)
     {
         //if the user saved the settings, then reconnect using the new values
         try
         {
             Disconnect();
             Connect();
         }
         catch { }
     }
     _connectionSettingsWindow = null;
 }
 /// <summary>
 /// Show the connection settings dialogue
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void ConnectionSettingsCommand(object sender, EventArgs e)
 {
     ConnectionSettingsWindow connectionSettingsWindow = new ConnectionSettingsWindow();
     if (connectionSettingsWindow.ShowDialog() == true)
     {
         //if the user saved the settings, then reconnect using the new values
         try
         {
             Disconnect();
             Connect();
         }
         catch { }
     }
 }