private void RegisterNewConnectionString(SqlConnectionString newValue) { if (newValue != null) { newValue.PropertyChanged += ConnectionStringPropertyChanged; } }
public ConnectionStringBuilderWindow(ConnectionStringCreatorGUI.SqlConnectionString connStr, Action <SqlConnectionString> action) { SqlConnectionString con = new SqlConnectionString(); InitializeComponent(); _viewModel = new ConnectionStringBuilderWindowViewModel(connStr, action); Loaded += new RoutedEventHandler(MainWindow_Loaded); }