Esempio n. 1
0
 private void ProcessDocumentEvent(DocumentEvent documentEvent)
 {
     if (_filterNextDocumentEvent)
     {
         _filterNextDocumentEvent = false;
         DropCurrentEvent();
     }
     else
     {
         if (documentEvent.Action == DocumentAction.Closing)
         {
             var commandEvent = new CommandEvent
             {
                 CommandId = "Close"
             };
             commandEvent.CopyIDEEventPropertiesFrom(documentEvent);
             ReplaceCurrentEventWith(commandEvent);
         }
     }
 }