示例#1
0
        protected virtual void OnTriggerStatusChanged(TriggerChangedEventArg e)
        {
            EventHandler <TriggerChangedEventArg> Handler = TriggerStatusChanged;

            if (Handler != null)
            {
                Handler(this, e);
            }
        }
示例#2
0
        public void UpdateTriggerStatus()
        {
            bool OldStatus = Status;

            if (OldStatus != Status)
            {
                //Trigger status changed event firing
                TriggerChangedEventArg Args = new TriggerChangedEventArg();
                Args.Status = Status;
                OnTriggerStatusChanged(Args);
            }
        }