예제 #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            SendForm sendForm = new SendForm();

            sendForm.vFuncs.Add(CheckCheckBox(checkBox1, textBox1));
            sendForm.vFuncs.Add(CheckCheckBox(checkBox2, textBox2));
            sendForm.vFuncs.Add(CheckCheckBox(checkBox3, textBox3));
            if (checkBox4.Checked)
            {
                sendForm.i = GetFromTextBox(textBox4.Text);
                if (sendForm.i * 20 >= Convert.ToInt32(textBox5.Text))
                {
                    sendForm.j = GetFromTextBox(textBox5.Text);
                }
                else
                {
                    sendForm.j = sendForm.i * 20;
                }
                sendForm.k = GetFromTextBox(textBox6.Text);
            }
            else
            {
                sendForm.i = sendForm.j = -1;
                sendForm.k = 1;
            }
            sendForm.R = GetFromTextBoxD(textBox7.Text);
            sendForm.C = GetFromTextBoxD(textBox8.Text);

            Form2 graphicForm = new Form2(sendForm);

            graphicForm.Show();
        }
예제 #2
0
 public Form2(SendForm sendFormMain)
 {
     InitializeComponent();
     sendForm = sendFormMain;
 }