Пример #1
0
        void timer_Tick(object sender, EventArgs e)
        {
            if (Tempest == null)
            {
                return;
            }

            if (!stopped)
            {
                // if we changed from running to not running show ourself and
                // highlight the current instruction
                if (tempest.IsStopped())
                {
                    stopped = true;

                    UpdateCPUDisplay();
                    this.Show();
                    this.Activate();

                    ShowCurrentInstruction();
                }
                else
                {
                    SelectLine(null);
                }
            }
        }