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

            _form = new SampleEmulatorForm(this.Emulator);

            _form.OnInitializeComponent();

            // Launch the UI thread.
            Thread uiThread = new Thread(RunForm);
            uiThread.SetApartmentState(ApartmentState.STA);
            uiThread.Start();
        }
示例#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 SampleEmulatorForm(this.Emulator);

            _form.OnInitializeComponent();

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

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