Start() публичный Метод

public Start ( ) : void
Результат void
Пример #1
0
        public MainForm()
        {
            uiForm = new Form();

            uiForm.ClientSize      = new Size(640, 400);
            uiForm.FormBorderStyle = FormBorderStyle.FixedSingle;
            uiForm.MaximizeBox     = false;
            uiForm.StartPosition   = FormStartPosition.CenterScreen;
            uiForm.Text            = "C# x86 Emulator";
            timerTicks             = 0;
            machine = new Machine(uiForm);
            Application.ApplicationExit += ApplicationApplicationExit;

            breakpoints.ItemAdded   += BreakpointsItemAdded;
            breakpoints.ItemDeleted += BreakpointsItemDeleted;

            InitializeComponent();

            PrintRegisters();

            machineThread = new Thread(RunMachine);
            running       = true;
            machineThread.Start();

            machine.Start();
            SetCPULabel(machine.CPU.InstructionText);
            PrintRegisters();
        }
Пример #2
0
        public MainForm()
        {
            uiForm = new Form();

            uiForm.ClientSize = new Size(640, 400);
            uiForm.FormBorderStyle = FormBorderStyle.FixedSingle;
            uiForm.MaximizeBox = false;
            uiForm.StartPosition = FormStartPosition.CenterScreen;
            uiForm.Text = "C# x86 Emulator";
            timerTicks = 0;
            machine = new Machine(uiForm);
            Application.ApplicationExit += ApplicationApplicationExit;

            breakpoints.ItemAdded += BreakpointsItemAdded;
            breakpoints.ItemDeleted += BreakpointsItemDeleted;

            InitializeComponent();

            PrintRegisters();

            machineThread = new Thread(RunMachine);
            running = true;
            machineThread.Start();

            machine.Start();
            SetCPULabel(machine.CPU.InstructionText);
            PrintRegisters();
        }
Пример #3
0
 private void RunToolStripMenuItemClick(object sender, EventArgs e)
 {
     runToolStripMenuItem.Enabled  = false;
     stopToolStripMenuItem.Enabled = true;
     machine.Start();
 }