public RequestElevationView( IApplicationLauncher applicationLauncher, IViewManager viewManager, ILogger <RequestElevationView> logger) { this.applicationLauncher = applicationLauncher.ThrowIfNull(nameof(applicationLauncher)); this.viewManager = viewManager.ThrowIfNull(nameof(viewManager)); this.logger = logger.ThrowIfNull(nameof(logger)); this.InitializeComponent(); }
public ScreenChoiceView( IViewManager viewManager, IScreenManager screenManager, ILiveOptions <ApplicationConfiguration> liveOptions, IApplicationLauncher applicationLauncher) { this.viewManager = viewManager.ThrowIfNull(nameof(viewManager)); this.screenManager = screenManager.ThrowIfNull(nameof(screenManager)); this.liveOptions = liveOptions.ThrowIfNull(nameof(liveOptions)); this.applicationLauncher = applicationLauncher.ThrowIfNull(nameof(applicationLauncher)); this.InitializeComponent(); this.selectedId = this.liveOptions.Value.DesiredGuildwarsScreen; this.CanTest = applicationLauncher.IsGuildwarsRunning; this.SetupView(); }