Exemplo n.º 1
0
        /// <summary>
        ///     Construct the application.
        /// </summary>
        public Application( IEventHandlingStrategy eventHandlingStrategy )
        {
            // Event Handling Strategy cannot be null
            if( null == eventHandlingStrategy ) {
                throw new ArgumentNullException( "eventHandlingStrategy" );
            }

            ApplicationEventHandler = eventHandlingStrategy;

            Destroyed = false;
        }
Exemplo n.º 2
0
        /// <summary>
        ///   Construct the application.
        /// </summary>
        public Application(IEventHandlingStrategy eventHandlingStrategy)
        {
            // Event Handling Strategy cannot be null
            if (null == eventHandlingStrategy)
            {
                throw new ArgumentNullException("eventHandlingStrategy");
            }

            ApplicationEventHandler = eventHandlingStrategy;

            Destroyed = false;
        }
Exemplo n.º 3
0
 /// <summary>
 ///   Construct a new DemoApplication instance.
 /// </summary>
 public DemoApplication( IEventHandlingStrategy eventHandlingStrategy )
     : base(eventHandlingStrategy)
 {
 }
Exemplo n.º 4
0
 /// <summary>
 ///   Construct a new DemoApplication instance.
 /// </summary>
 public DemoApplication(IEventHandlingStrategy eventHandlingStrategy) : base(eventHandlingStrategy)
 {
 }