Exemple #1
0
        public static SqlConnection ShowConnectDialog()
        {
            var dlg    = new ConnectDialog();
            var result = dlg.ShowDialog();

            return(result.HasValue & result.Value ? dlg.Connection : null);
        }
Exemple #2
0
 private void MenuItem_Click(object sender, RoutedEventArgs e)
 {
     sqlConnection = ConnectDialog.ShowConnectDialog();
 }