private void HookupEvents() { var dispatcher = Dispatcher.CurrentDispatcher; TraceManager.EventTrace += (evt, type) => { var info = GetDetails(evt); var data = new TraceEventDataViewModel(evt, type, info); lock (_tempEvents) _tempEvents.Add(data); }; }
internal ProcessTraceEventViewModel(TraceEventDataViewModel evt) : base(evt.Data, evt.Type, evt.Details) { ProcessData = (ProcessTraceData)evt.Data; Debug.Assert(ProcessData != null); }