Exemplo n.º 1
0
        public SqlConnectionStringBuilder(ISmoTasks smoTasks)
        {
            _smoTasks = smoTasks;

            _dbLoader.DoWork             += DbLoaderDoWork;
            _dbLoader.RunWorkerCompleted += DbLoaderRunWorkerCompleted;
        }
        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;
        }
Exemplo n.º 4
0
        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;
        }
Exemplo n.º 5
0
 public SyncServerConnectionEditorViewModel(ISmoTasks smoTasks)
     : this(smoTasks, new SqlConnectionString {
     IntegratedSecurity = true, Pooling = false
 })
 {
 }
 public SyncServerConnectionEditorViewModel(ISmoTasks smoTasks)
     : this(smoTasks, new SqlConnectionString {IntegratedSecurity = true, Pooling = false})
 {
 }