コード例 #1
0
        /// <summary>
        /// Get business class corresponding to an event.
        /// </summary>
        /// <param name="evt">Event.</param>
        /// <returns>Busines class.</returns>
        internal static AEventBusiness GetBusiness(EventDto evt)
        {
            AEventBusiness result;

            if (evt is TimeEventDto)
            {
                result = new TimeEventBusiness(evt);
            }
            else
            {
                result = null;
            }

            return result;
        }
コード例 #2
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="evt">Event.</param>
 internal AEventBusiness(EventDto evt)
 {
     Event = evt;
 }
コード例 #3
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="evt">Event.</param>
 internal TimeEventBusiness(EventDto evt)
     : base(evt)
 {
 }