private void ApplyOrQueueEvent(MultiformPostUpdateEvent evt)
 {
     if (Updating)
     {
         PostUpdateEvents.Add(evt);
     }
     else if (ApplyingPostUpdateEvents)
     {
         PostUpdateEventQueue.Add(evt);
     }
     else
     {
         // Perform it immediately if we're not updating or applying PostUpdateEvents.
         evt.Perform(RegisteredMultiforms, ActiveMultiforms);
     }
 }
 private void ApplyOrQueueEvent(MultiformPostUpdateEvent evt)
 {
     if (Updating)
     {
         PostUpdateEvents.Add(evt);
     }
     else if (ApplyingPostUpdateEvents)
     {
         PostUpdateEventQueue.Add(evt);
     }
     else
     {
         // Perform it immediately if we're not updating or applying PostUpdateEvents.
         evt.Perform(RegisteredMultiforms, ActiveMultiforms);
     }
 }