public SettingsWindow([NotNull] SettingsWindowViewModel settingsWindowViewModel, [NotNull] WpfSettings wpfSettings) { DataContext = settingsWindowViewModel; _wpfSettings = wpfSettings; this.StartOnSelectedWindow(_wpfSettings); InitializeComponent(); }
public SettingsWindowViewModel([NotNull] WpfSettings wpfSettings, [NotNull] IErrorHandler errorHandler) { WpfSettings = wpfSettings; SelectDbPathCommand = new RunMethodWithoutParameterCommand(SelectDbPath, errorHandler.HandleError); SelectClientSecretPathCommand = new RunMethodWithoutParameterCommand(SelectClientSecret, errorHandler.HandleError); OpenDeveloperConsoleCommand = new RunMethodWithoutParameterCommand(OpenDeveloperConsole, errorHandler.HandleError); }
public MainWindow([NotNull] MainWindowViewModel mainWindowViewModel, [NotNull] WpfSettings wpfSettings) { _mainWindowViewModel = mainWindowViewModel; _wpfSettings = wpfSettings; DataContext = _mainWindowViewModel; this.StartOnSelectedWindow(_wpfSettings); InitializeComponent(); }
public UpdateDataWindow([NotNull] UpdateDataViewModel updateDataViewModel, [NotNull] WpfSettings wpfSettings) { _updateDataViewModel = updateDataViewModel; _updateDataViewModel.ParentWindow = this; DataContext = _updateDataViewModel; _wpfSettings = wpfSettings; this.StartOnSelectedWindow(_wpfSettings); InitializeComponent(); }
public SettingsWindow([NotNull] SettingsWindowViewModel settingsWindowViewModel, [NotNull] WpfSettings wpfSettings, [NotNull] WindowExtensions windowExtensions, [NotNull] IDoWorkOnUi doWorkOnUi) { DataContext = settingsWindowViewModel; _wpfSettings = wpfSettings; _windowExtensions = windowExtensions; _doWorkOnUi = doWorkOnUi; Task.Run(async() => await _windowExtensions.StartOnSelectedWindow(this, _wpfSettings)); InitializeComponent(); }
public UpdateDataWindow([NotNull] UpdateDataViewModel updateDataViewModel, [NotNull] WpfSettings wpfSettings, [NotNull] IDoWorkOnUi doWorkOnUi, [NotNull] WindowExtensions windowExtensions) { _updateDataViewModel = updateDataViewModel; _updateDataViewModel.ParentWindow = this; DataContext = _updateDataViewModel; _wpfSettings = wpfSettings; _doWorkOnUi = doWorkOnUi; _windowExtensions = windowExtensions; Task.Run(async() => await _windowExtensions.StartOnSelectedWindow(this, _wpfSettings)); InitializeComponent(); }
public MainWindow([NotNull] MainWindowViewModel mainWindowViewModel, [NotNull] WpfSettings wpfSettings, [NotNull] IAppClosingCancellationToken appClosingCancellationToken, [NotNull] WindowExtensions windowExtensions, [NotNull] ILogger logger) { _mainWindowViewModel = mainWindowViewModel; _wpfSettings = wpfSettings; _appClosingCancellationToken = appClosingCancellationToken; _windowExtensions = windowExtensions; _logger = logger; DataContext = _mainWindowViewModel; Task.Run(async() => await _windowExtensions.StartOnSelectedWindow(this, _wpfSettings)); InitializeComponent(); }