예제 #1
0
 private void SubscribeToGridContextMenuControlEvents()
 {
     gridContextMenuItemEditClient.Click += (s, e) =>
     {
         using (var scope = _presenter.ServiceScopeFactory.CreateScope())
         {
             var presenterFactory = scope.ServiceProvider.GetRequiredService <FahClientSettingsPresenterFactory>();
             _presenter.ClientsEditClick(presenterFactory);
         }
     };
     gridContextMenuItemDeleteClient.Click        += (s, e) => _presenter.ClientsDeleteClick();
     gridContextMenuItemRefreshSelectedSlot.Click += (s, e) => _presenter.ClientsRefreshSelectedClick();
     gridContextMenuItemViewCachedLog.Click       += (s, e) => _presenter.ClientsViewCachedLogClick(LocalProcessService.Default);
     gridContextMenuItemFoldSlot.Click            += (s, e) => _presenter.ClientsFoldSlotClick();
     gridContextMenuItemPauseSlot.Click           += (s, e) => _presenter.ClientsPauseSlotClick();
     gridContextMenuItemFinishSlot.Click          += (s, e) => _presenter.ClientsFinishSlotClick();
     gridContextMenuItemCopyPRCG.Click            += (s, e) => _presenter.CopyPRCGToClipboardClicked();
 }