private void SubscribeToHelpMenuControlEvents() { mnuHelpHfmLogFile.Click += (s, e) => _presenter.ShowHfmLogFile(LocalProcessService.Default); mnuHelpHfmDataFiles.Click += (s, e) => _presenter.ShowHfmDataFiles(LocalProcessService.Default); mnuHelpHfmGroup.Click += (s, e) => _presenter.ShowHfmGoogleGroup(LocalProcessService.Default); mnuHelpCheckForUpdate.Click += (s, e) => { using (var scope = _presenter.ServiceScopeFactory.CreateScope()) { var service = scope.ServiceProvider.GetRequiredService <ApplicationUpdateService>(); var presenterFactory = scope.ServiceProvider.GetRequiredService <ApplicationUpdatePresenterFactory>(); _presenter.CheckForUpdateClick(service, presenterFactory); } }; mnuHelpAbout.Click += (s, e) => { using (var scope = _presenter.ServiceScopeFactory.CreateScope()) using (var dialog = scope.ServiceProvider.GetRequiredService <AboutDialog>()) { dialog.ShowDialog(_presenter.Form); } }; }