void win_PreviewKeyDown(object sender, System.Windows.Input.KeyEventArgs e) { BusyService busyService = IoC.Get <BusyService>(); if (busyService.IsShowingBusy) { e.Handled = true; } }
public CrowdMemberExplorerViewModelImpl(CrowdRepository repository, CrowdClipboard clipboard, DesktopKeyEventHandler desktopKeyHandler, IEventAggregator eventAggregator, BusyService busyService) { this.CrowdRepository = repository; this.CrowdClipboard = clipboard; this.DesktopKeyEventHandler = desktopKeyHandler; this.EventAggregator = eventAggregator; this.busyService = busyService; this.CrowdRepository.CrowdRepositoryPath = Path.Combine(HeroUI.Properties.Settings.Default.GameDirectory, GAME_DATA_FOLDERNAME, GAME_CROWD_REPOSITORY_FILENAME); this.EventAggregator.Subscribe(this); RegisterKeyHanders(); }