Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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;
        }