예제 #1
0
        /// <summary>
        /// Initializes the application.  Called by the emulator after all
        /// components are set up and registered.
        /// </summary>
        public override void InitializeComponent()
        {
            // Call the base class implementation
            base.InitializeComponent();

            // Create the main form, passing in the emulator object.
            _form = new TemperatureEmulatorForm(this.Emulator);

            // Initialize the main form's components.
            _form.OnInitializeComponent();

            // Launch the UI thread.
            new Thread(RunForm).Start();
        }
예제 #2
0
        /// <summary>
        /// Initializes the application.  Called by the emulator after all 
        /// components are set up and registered.
        /// </summary>
        public override void InitializeComponent()
        {
            // Call the base class implementation
            base.InitializeComponent();

            // Create the main form, passing in the emulator object.
            _form = new TemperatureEmulatorForm(this.Emulator);

            // Initialize the main form's components.
            _form.OnInitializeComponent();

            // Launch the UI thread.
            new Thread(RunForm).Start();
        }