コード例 #1
0
        private void button2_Click(object sender, EventArgs e)
        {
            switch (state)
            {
            case 0:
                New_object.stanFind_F();
                dataGridView7.DataSource = New_object.Get_First();
                dataGridView7.Visible    = true;
                label4.Visible           = true;
                break;

            case 1:
                New_object.stan();
                label4.Visible        = false;
                dataGridView7.Visible = false;
                break;

            case 2:
                New_object.stanFind_L();
                dataGridView7.DataSource = New_object.Get_Last();
                dataGridView7.Visible    = true;
                label4.Text    = "Таблиця\nLAST";
                label4.Visible = true;
                break;

            case 3:
                New_object.stan1();
                label4.Visible        = false;
                dataGridView7.Visible = false;
                break;

            case 4:
                dataGridView7.DataSource = New_object.Get_Stack();
                dataGridView7.Location   = new System.Drawing.Point(46, 533);
                dataGridView7.Size       = new System.Drawing.Size(994, 200);
                dataGridView7.Visible    = true;
                New_object.Last_relation_state();
                break;

            case 5:
                POLIZ New_object1 = new POLIZ(richTextBox1.Text + '\n');
                dataGridView6.DataSource = New_object1.Get_Data_Stan();


                dataGridView7.Visible = false;
                break;
            }

            state++;
        }
コード例 #2
0
        private void pOLIZToolStripMenuItem_Click(object sender, EventArgs e)
        {
            POLIZ New_object = new POLIZ(richTextBox1.Text + '\n');

            dataGridView6.DataSource = New_object.Get_Data_Stan();
            //dataGridView7.DataSource = New_object.Get_Data_Stack();
            button1.Visible        = false;
            button2.Visible        = false;
            dataGridView7.Location = new System.Drawing.Point(590, 533);
            dataGridView7.Size     = new System.Drawing.Size(450, 200);
            dataGridView7.Visible  = false;

            label1.Text = "Stan";
            label4.Text = "Stack";

            label1.Location = new System.Drawing.Point(850, 30);
            label4.Location = new System.Drawing.Point(515, 600);

            dataGridView6.Visible = true;
            dataGridView7.Visible = false;

            dataGridView1.Visible = false;
            dataGridView2.Visible = false;
            dataGridView3.Visible = false;
            dataGridView4.Visible = false;

            label1.Visible            = true;
            label2.Visible            = false;
            label3.Visible            = false;
            label4.Visible            = false;
            LineNumberTextBox.Visible = true;

            dataGridView5.Visible = false;
            button1.Visible       = false;
            label6.Visible        = false;
            label7.Visible        = false;
            button3.Visible       = false;
            richTextBox1.Visible  = true;
        }