コード例 #1
0
 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();
 }