Exemplo n.º 1
0
        /// <summary>
        /// Initializes an instance of XApplication.
        /// </summary>
        public XApplication()
        {
            _current = this;

            _componentContainer = new ComponentContainer(this);
            _componentContainer.RegisterObject(this);

            Exit += OnApplicationExit;
            Startup += OnApplicationStartup;
            UnhandledException += OnApplicationUnhandledException;

            _uiContext = SynchronizationContext.Current;
        }
Exemplo n.º 2
0
        /// <summary>
        /// Initializes an instance of XApplication.
        /// </summary>
        public XApplication()
        {
            _current = this;

            _componentContainer = new ComponentContainer(this);
            _componentContainer.RegisterObject(this);

            Exit               += OnApplicationExit;
            Startup            += OnApplicationStartup;
            UnhandledException += OnApplicationUnhandledException;

            _uiContext = SynchronizationContext.Current;
        }