/// <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; }
/// <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); }