Beispiel #1
0
 private void PassEvents()
 {
     if (eventListener != null)
     {
         while (eventQueue.Any())
         {
             ViewModelEvent viewModelEvent = eventQueue.Dequeue();
             eventListener.OnViewModelEvent(viewModelEvent);
         }
     }
 }
Beispiel #2
0
 public void RaiseEvent(ViewModelEvent viewModelEvent)
 {
     eventQueue.Enqueue(viewModelEvent);
     PassEvents();
 }