private void PushEvent(OperationItem operation) { lock (Lock) { Dispatcher.Invoke((Action)(() => { if (_eventWindow == null) { _eventWindow = new EventWindow(); _eventWindow.Closed += EventWindow_Closed; _eventWindow.Show(); } // Call the event window on this operation _eventWindow.PushEvent(operation.ToOperation()); })); } }
private void EventWindow_Closed(object sender, System.EventArgs e) { _eventWindow = null; }