private void OnSelectedEventChanged(TracefileEventChangedEventArgs e) { EventHandler <TracefileEventChangedEventArgs> handler = SelectedEventChanged; if (handler != null) { handler(this, e); } }
private void OnSelectedEventChanged(object sender, TracefileEventChangedEventArgs e) { NotifyOfPropertyChange(() => SelectedEvent); if (_selectionService.SelectedEvent == null) return; var swapChainPresenter = new WpfSwapChainPresenter(Dispatcher.CurrentDispatcher); var replayer = new Replayer( _selectionService.SelectedFrame.Model, _selectionService.SelectedEvent.Model, swapChainPresenter); //Task.Factory.StartNew(() => //{ // replayer.Replay(); //}); }
private void OnSelectedEventChanged(object sender, TracefileEventChangedEventArgs e) { NotifyOfPropertyChange(() => SelectedEvent); _objects.Clear(); if (_selectionService.SelectedEvent == null) return; var swapChainPresenter = new WpfSwapChainPresenter(Dispatcher.CurrentDispatcher); var replayer = new Replayer( _selectionService.SelectedFrame.Model, _selectionService.SelectedEvent.Model, swapChainPresenter); Task.Factory.StartNew(() => { replayer.Replay(); _objects.AddRange(replayer.Device.DeviceChildren .Select(x => new GraphicsObjectViewModel(x))); }); }
private void OnSelectedEventChanged(object sender, TracefileEventChangedEventArgs e) { NotifyOfPropertyChange(() => SelectedEvent); }
private void OnSelectedEventChanged(TracefileEventChangedEventArgs e) { EventHandler<TracefileEventChangedEventArgs> handler = SelectedEventChanged; if (handler != null) handler(this, e); }