Ejemplo n.º 1
0
        /// <summary>
        /// Called by the emulator after all components have been set up and registered
        /// </summary>
        public override void InitializeComponent()
        {
            base.InitializeComponent();

            _form = new TestEmulatorForm(this.Emulator);

            _form.OnInitializeComponent();

            // Launch the UI thread.
            Thread uiThread = new Thread(RunForm);
            uiThread.SetApartmentState(ApartmentState.STA);
            uiThread.Start();
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Called by the emulator after all components have been set up and registered
        /// </summary>
        public override void InitializeComponent()
        {
            base.InitializeComponent();

            _form = new TestEmulatorForm(this.Emulator);

            _form.OnInitializeComponent();

            // Launch the UI thread.
            Thread uiThread = new Thread(RunForm);

            uiThread.SetApartmentState(ApartmentState.STA);
            uiThread.Start();
        }