A dialog to select an open connection
Inheritance: System.Windows.Forms.Form
 /// <summary>
 /// Gets the name of the connection.
 /// </summary>
 /// <returns></returns>
 public static string GetConnectionName()
 {
     ConnectionPicker dlg = new ConnectionPicker();
     if (dlg.ShowDialog() == DialogResult.OK)
     {
         return dlg.lstConnections.SelectedItem.ToString();
     }
     return string.Empty;
 }
Beispiel #2
0
        /// <summary>
        /// Gets the name of the connection.
        /// </summary>
        /// <returns></returns>
        public static string GetConnectionName()
        {
            ConnectionPicker dlg = new ConnectionPicker();

            if (dlg.ShowDialog() == DialogResult.OK)
            {
                return(dlg.lstConnections.SelectedItem.ToString());
            }
            return(string.Empty);
        }