private void RegisterNewConnectionString(SqlConnectionString newValue)
 {
     if (newValue != null)
     {
         newValue.PropertyChanged += ConnectionStringPropertyChanged;
     }
 }
示例#2
0
        public ConnectionStringBuilderWindow(ConnectionStringCreatorGUI.SqlConnectionString connStr, Action <SqlConnectionString> action)
        {
            SqlConnectionString con = new SqlConnectionString();

            InitializeComponent();
            _viewModel = new ConnectionStringBuilderWindowViewModel(connStr, action);

            Loaded += new RoutedEventHandler(MainWindow_Loaded);
        }