示例#1
0
 public void PushEvent(AasxPluginResultEventBase evt)
 {
     if (evt == null || this.eventStack == null)
     {
         return;
     }
     lock (this.eventStack)
     {
         this.eventStack.Add(evt);
     }
 }
示例#2
0
        public AasxPluginResultEventBase PopEvent()
        {
            // result
            AasxPluginResultEventBase evt = null;

            // get?
            lock (this.eventStack)
            {
                if (this.eventStack.Count > 0)
                {
                    evt = this.eventStack[0];
                    this.eventStack.RemoveAt(0);
                }
            }

            // return if found or not ..
            return(evt);
        }