private void EditConnectionString()
 {
     var ci = this.ConnectionStringListBox.SelectedValue as ConnectionStringInfo;
     var w = new EditConnectionStringWindow(ci);
     w.Saved += EditConnectionStringWindow_Saved;
     w.ShowDialog();
 }
 private void AddConnectionStringButton_Click(object sender, RoutedEventArgs e)
 {
     this.ConnectionStringListBox.SelectedIndex = -1;
     var w = new EditConnectionStringWindow();
     w.Saved += EditConnectionStringWindow_Saved;
     w.ShowDialog();
 }
        private void EditConnectionString()
        {
            var ci = this.ConnectionStringListBox.SelectedValue as ConnectionStringInfo;
            var w  = new EditConnectionStringWindow(ci);

            w.Saved += EditConnectionStringWindow_Saved;
            w.ShowDialog();
        }
        private void AddConnectionStringButton_Click(object sender, RoutedEventArgs e)
        {
            this.ConnectionStringListBox.SelectedIndex = -1;
            var w = new EditConnectionStringWindow();

            w.Saved += EditConnectionStringWindow_Saved;
            w.ShowDialog();
        }