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; }
public DataBasesPresenter(IDataBasesView view, ISqlQueryExecutor sqlExecutor, IWindowsIdentityProvider windowsIdentityProvider, IDBInfoBuilder dbInfoBuilder) { _view = view; _sqlExecutor = sqlExecutor; _windowsIdentityProvider = windowsIdentityProvider; _dbInfoBuilder = dbInfoBuilder; _view.Shown += _view_Shown; _view.ConnectClicked += _view_ConnectClicked; _view.DataBaseCheckedChanged += _view_DataBaseCheckedChanged; _view.AnalyseClicked += _view_AnalyseClicked; }
public DataBasesPresenter(IDataBasesView view, ISqlQueryExecutor sqlExecutor, IWindowsIdentityProvider windowsIdentityProvider, IDBInfoBuilder dbInfoBuilder) { _view = view; _sqlExecutor = sqlExecutor; _windowsIdentityProvider = windowsIdentityProvider; _dbInfoBuilder = dbInfoBuilder; _view.Shown += _view_Shown; _view.ConnectClicked += _view_ConnectClicked; _view.DataBaseCheckedChanged += _view_DataBaseCheckedChanged; _view.AnalyseClicked += _view_AnalyseClicked; }