예제 #1
0
파일: Form1.cs 프로젝트: TheMadius/NSTU
        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);
        }
예제 #2
0
파일: Form1.cs 프로젝트: TheMadius/NSTU
        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;
        }
예제 #3
0
파일: Form1.cs 프로젝트: TheMadius/NSTU
        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);
        }
예제 #4
0
 public void setIlne(InfinityTape Ilne)
 {
     ilne = Ilne;
 }
예제 #5
0
파일: SeveLine.cs 프로젝트: TheMadius/NSTU
        public InfinityTape getLineT()
        {
            InfinityTape Line = new InfinityTape(this);

            return(Line);
        }