private void восстановитьЛентуToolStripMenuItem_Click(object sender, EventArgs e) { line.delControl(); line.Clear(); InfinityTape newLine = new InfinityTape(JsonConvert.DeserializeObject <SeveLine>(copyLine)); newLine.Control = splitContainer1.Panel1.Controls; this.line = newLine; MoveHead(-dx, -dy); line.setControl(); line.setAlphabet(this.textBox1.Text); }
private void setLine(InfinityTape newLine) { line.delControl(); line.Clear(); this.controlLen = newLine.Alphabet.Length; newLine.Control = splitContainer1.Panel1.Controls; this.line = newLine; MoveHead(-dx, -dy); line.setControl(); this.dataGridView1.Rows.Clear(); for (int i = 0; i < newLine.Alphabet.Length; ++i) { this.dataGridView1.Rows.Add("" + newLine.Alphabet[i]); } this.dataGridView1.Rows.Add("_"); this.textBox1.Text = newLine.Alphabet; }
private void init() { TurMachine = null; Path = null; copyLine = null; this.timer1.Interval = 1000; this.восстановитьЛентуToolStripMenuItem.Enabled = false; this.оченьБыстроToolStripMenuItem.Checked = false; this.быстроToolStripMenuItem.Checked = false; this.среднеToolStripMenuItem.Checked = true; this.медленноToolStripMenuItem.Checked = false; this.оченьМедленноToolStripMenuItem.Checked = false; this.dataGridView1.Columns.Clear(); this.dataGridView1.Columns.Add(" ", " "); this.dataGridView1.Columns[" "].Width = 50; this.dataGridView1.Columns[" "].ReadOnly = true; this.dataGridView1.Columns[" "].SortMode = DataGridViewColumnSortMode.NotSortable; this.dataGridView1.Columns.Add("Q1", "Q1"); this.dataGridView1.Columns["Q1"].SortMode = DataGridViewColumnSortMode.NotSortable; this.dataGridView1.Rows.Clear(); this.dataGridView1.Rows.Add("_"); controlLen = 0; button3.Enabled = true; button4.Enabled = true; button5.Enabled = true; button6.Enabled = false; button7.Enabled = false; button8.Enabled = true; this.line = new InfinityTape(new Point(478, 53), new Point(482, 73), splitContainer1.Panel1.Controls); VoidFilling(); MoveHead(-dx, -dy); }
public void setIlne(InfinityTape Ilne) { ilne = Ilne; }
public InfinityTape getLineT() { InfinityTape Line = new InfinityTape(this); return(Line); }