示例#1
0
        public static void InvokeDecontamination(ref bool allow)
        {
            if (DecontaminationEvent == null)
            {
                return;
            }

            DecontaminationEvent ev = new DecontaminationEvent
            {
                Allow = allow
            };

            DecontaminationEvent.Invoke(ref ev);

            allow = ev.Allow;
        }
示例#2
0
        public static void InvokeDecontamination(ref bool allow)
        {
            Decontamination decontamination = DecontaminationEvent;

            if (decontamination == null)
            {
                return;
            }
            DecontaminationEvent ev = new DecontaminationEvent
            {
                Allow = allow
            };

            decontamination.Invoke(ref ev);
            allow = ev.Allow;
        }