private void button3_Click(object sender, EventArgs e) { MoveHead(dx, dy); line.MoveLeft(); VoidFilling(); MoveHead(-dx, -dy); }
public void makeStep() { if (nextQ == 0) { return; } string symbol = ilne[ilne.PosHead].Text; ActionT act = action[symbol][nextQ - 1]; if (act == null) { throw new Exception("Нет команды в ячейке (" + ((symbol == "")?"_": symbol) + ",Q" + nextQ + ")"); } nextQ = act.Status; if (act.Symbol == "_") { ilne[ilne.PosHead].Text = ""; } else { ilne[ilne.PosHead].Text = act.Symbol; } switch (act.Act) { case Move.Right: ilne.MoveRight(); break; case Move.Left: ilne.MoveLeft(); break; } }