Beispiel #1
0
 private void SubscribeToClientsMenuControlEvents()
 {
     appMenuClientsAddClient.Click += (s, e) =>
     {
         using (var scope = _presenter.ServiceScopeFactory.CreateScope())
         {
             var presenterFactory = scope.ServiceProvider.GetRequiredService <FahClientSettingsPresenterFactory>();
             _presenter.ClientsAddClick(presenterFactory);
         }
     };
     appMenuClientsEditClient.Click += (s, e) =>
     {
         using (var scope = _presenter.ServiceScopeFactory.CreateScope())
         {
             var presenterFactory = scope.ServiceProvider.GetRequiredService <FahClientSettingsPresenterFactory>();
             _presenter.ClientsEditClick(presenterFactory);
         }
     };
     appMenuClientsDeleteClient.Click        += (s, e) => _presenter.ClientsDeleteClick();
     appMenuClientsRefreshSelectedSlot.Click += (s, e) => _presenter.ClientsRefreshSelectedClick();
     appMenuClientsRefreshAllSlots.Click     += (s, e) => _presenter.ClientsRefreshAllClick();
     appMenuClientsViewCachedLog.Click       += (s, e) => _presenter.ClientsViewCachedLogClick(LocalProcessService.Default);
 }