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; }
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; }