public SqlConnectionStringBuilder(ISmoTasks smoTasks) { _smoTasks = smoTasks; _dbLoader.DoWork += DbLoaderDoWork; _dbLoader.RunWorkerCompleted += DbLoaderRunWorkerCompleted; }
public SyncServerConnectionEditorViewModel(ISmoTasks smoTasks, string initialConnectionString) { _smoTasks = smoTasks; _connectionString = new SqlConnectionString(initialConnectionString); if (string.IsNullOrEmpty(initialConnectionString)) _connectionString.IntegratedSecurity = true; _connectionString.PropertyChanged += (sender, e) => RaisePropertyChanged("ConnectionString"); _dbLoader.DoWork += dbLoaderDoWork; _dbLoader.RunWorkerCompleted += dbLoaderRunWorkerCompleted; _connectionString.PropertyChanged += connectionStringPropertyChanged; }
public SyncServerConnectionEditorViewModel(ISmoTasks smoTasks, string initialConnectionString) { _smoTasks = smoTasks; _connectionString = new SqlConnectionString(initialConnectionString); if (string.IsNullOrEmpty(initialConnectionString)) { _connectionString.IntegratedSecurity = true; } _connectionString.PropertyChanged += (sender, e) => RaisePropertyChanged("ConnectionString"); _dbLoader.DoWork += dbLoaderDoWork; _dbLoader.RunWorkerCompleted += dbLoaderRunWorkerCompleted; _connectionString.PropertyChanged += connectionStringPropertyChanged; }
public SyncServerConnectionEditorViewModel(ISmoTasks smoTasks) : this(smoTasks, new SqlConnectionString { IntegratedSecurity = true, Pooling = false }) { }
public SyncServerConnectionEditorViewModel(ISmoTasks smoTasks) : this(smoTasks, new SqlConnectionString {IntegratedSecurity = true, Pooling = false}) { }