/* * Read Character * */ public async void ReadChar() { this.Enabled = false; if (STEP_radioButton.Checked == true) { STEP_Timer.Stop(); } ReadKey rk = new ReadKey(this, STEP_radioButton.Checked); rk.ShowDialog(); }
/* * Timer * */ private void STEP_Timer_Tick(object sender, EventArgs e) { if (timer >= linieKodu.Count) { timer = 0; Kompilator.Kompilator.ResetKompilator(); linieKodu.Clear(); STEP_Timer.Stop(); } else if (!Kompilator.Kompilator.Evaluate(linieKodu[timer], this, timer++)) { timer = 0; linieKodu.Clear(); STEP_Timer.Stop(); Kompilator.Kompilator.ShowMistakes(); Kompilator.Kompilator.ResetKompilator(); } }