Exemplo n.º 1
0
        /// <summary>
        /// Registers the full and simple class name of the specified event and sets the default
        /// priority of the event class.
        /// </summary>
        /// <param name="evnt">an event belonging to the event class to register the class name for etc.</param>
        private void registerEventNames(Event evnt)
        {
            if (!HiddenAccessN.IsCriticalEvent(evnt))
            {
                HiddenAccessN.SetDefaultPriority(evnt);
            }
            Type type = evnt.GetType();

            eventNames.Add(type.FullName, evnt); // full name with package name
            eventNames.Add(type.Name, evnt);     // only the class name
        }