A dialog to select an open connection
Наследование: System.Windows.Forms.Form
Пример #1
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;
 }
Пример #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);
        }