public OptionsPageControl(OptionsViewModel viewModel)
        {
            InitializeComponent();
            DataContext = viewModel;
            GuidanceLink.NavigateUri = new Uri(LocalizedStrings.MoreInformationUrl);

            Loaded += async (s, e) => await viewModel.UpdateAsync();
            Unloaded += (s, e) => viewModel.Save();
        }
 public ApiPortVsAnalyzer(
     ApiPortClient client,
     OptionsViewModel optionsViewModel,
     OutputWindowWriter outputWindow,
     IReportViewer viewer,
     IProgressReporter reporter)
 {
     _client = client;
     _optionsViewModel = optionsViewModel;
     _outputWindow = outputWindow;
     _viewer = viewer;
     _reporter = reporter;
 }