private void pictureBox3_Click(object sender, EventArgs e)
 {
     Any_of_Them backOption = new Any_of_Them(); backOption.Show(); this.Visible = false;
 }
Beispiel #2
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (comboBox1.Text == "")
     {
         MessageBox.Show("Please Select any Type of the Data..!");
     }
     else if (comboBox1.Text == "Or, any" || comboBox1.Text == "Quantitative" || comboBox1.Text == "Qualitative")
     {
         if (checkBox7.Checked == false && checkBox1.Checked == false && checkBox2.Checked == false && checkBox4.Checked == false &&
             checkBox3.Checked == false && checkBox8.Checked == false && checkBox9.Checked == false &&
             checkBox5.Checked == false)
         {
             MessageBox.Show("Please Select any of these..!");
         }
         else
         {
             Any_of_Them newForm = new Any_of_Them(checkBox1.Checked, checkBox2.Checked, checkBox3.Checked
                                                   , checkBox4.Checked, checkBox5.Checked, checkBox8.Checked, checkBox9.Checked, average, median, min, max, varience, standard_devation
                                                   , range, checkBox7.Checked, mode, colData); newForm.Show(); this.Visible = false;
             if (checkBox1.Checked == false)
             {
                 newForm.label1_Click(sender, e); newForm.textBox1_TextChanged(sender, e);
             }
             else
             {
                 newForm.label1_Click(sender, e); newForm.textBox1_TextChanged(sender, e);
             }
             if (checkBox2.Checked == false)
             {
                 newForm.label2_Click(sender, e); newForm.textBox2_TextChanged(sender, e);
             }
             else
             {
                 newForm.label2_Click(sender, e); newForm.textBox2_TextChanged(sender, e);
             }
             if (checkBox4.Checked == false)
             {
                 newForm.label3_Click(sender, e); newForm.textBox3_TextChanged(sender, e);
             }
             else
             {
                 newForm.label3_Click(sender, e); newForm.textBox3_TextChanged(sender, e);
             }
             if (checkBox3.Checked == false)
             {
                 newForm.label4_Click(sender, e); newForm.textBox4_TextChanged(sender, e);
             }
             else
             {
                 newForm.label4_Click(sender, e); newForm.textBox4_TextChanged(sender, e);
             }
             if (checkBox5.Checked == false)
             {
                 newForm.label7_Click(sender, e); newForm.textBox5_TextChanged(sender, e);
             }
             else
             {
                 newForm.label7_Click(sender, e); newForm.textBox5_TextChanged(sender, e);
             }
             if (checkBox8.Checked == false)
             {
                 newForm.label5_Click(sender, e); newForm.textBox6_TextChanged(sender, e);
             }
             else
             {
                 newForm.label5_Click(sender, e); newForm.textBox6_TextChanged(sender, e);
             }
             if (checkBox9.Checked == false)
             {
                 newForm.label6_Click(sender, e); newForm.textBox7_TextChanged(sender, e);
             }
             else
             {
                 newForm.label6_Click(sender, e); newForm.textBox7_TextChanged(sender, e);
             }
             if (checkBox7.Checked == false)
             {
                 newForm.label8_Click(sender, e); newForm.textBox8_TextChanged(sender, e);
             }
             else
             {
                 newForm.label8_Click(sender, e); newForm.textBox8_TextChanged(sender, e);
             } DataGridViewCellEventArgs e1 = null;
             newForm.TabularForm_CellContentClick(sender, e1);
         }
     }
 }