예제 #1
0
 public MainViewModel(ISqlQueryExecutor sqlExecutor, IMainView mainView,
                      IWindowsIdentityProvider windowsIdentityProvider, IDBInfoBuilder dbInfoBuilder)
 {
     _sqlExecutor = sqlExecutor;
     _mainView = mainView;
     _dbInfoBuilder = dbInfoBuilder;
     AllDataBases = new ObservableCollection<DBInfoListItem>();
     Connect = new RelayCommand(ConnectClicked);
     Analyse = new RelayCommand(AnalyseClicked, CanClickAnalyse);
     ShowAboutWindow = new RelayCommand(AboutClicked);
     SqlConnectionSettingsViewModel = new SqlConnectionSettingsViewModel(windowsIdentityProvider);
     HelpText = INIT_TEXT;
 }
예제 #2
0
 public MainViewModel(ISqlQueryExecutor sqlExecutor, IMainView mainView,
                      IWindowsIdentityProvider windowsIdentityProvider, IDBInfoBuilder dbInfoBuilder)
 {
     _sqlExecutor    = sqlExecutor;
     _mainView       = mainView;
     _dbInfoBuilder  = dbInfoBuilder;
     AllDataBases    = new ObservableCollection <DBInfoListItem>();
     Connect         = new RelayCommand(ConnectClicked);
     Analyse         = new RelayCommand(AnalyseClicked, CanClickAnalyse);
     ShowAboutWindow = new RelayCommand(AboutClicked);
     SqlConnectionSettingsViewModel = new SqlConnectionSettingsViewModel(windowsIdentityProvider);
     HelpText = INIT_TEXT;
 }