Exemplo n.º 1
0
        /************************************************************************************************************************/

        /// <summary>Stores the details of the specified event.</summary>
        public static void CopyEvent(UltEventBase e)
        {
            var eventType = e.GetType();

            if (_Event == null || _Event.GetType() != eventType)
            {
                _Event = (UltEventBase)Activator.CreateInstance(eventType);
            }

            _Event.CopyFrom(e);
        }
Exemplo n.º 2
0
        /************************************************************************************************************************/

        /// <summary>Overwrites the specified event with the previously copied details.</summary>
        public static void Paste(UltEventBase e)
        {
            e.CopyFrom(_Event);
        }