Beispiel #1
0
        private void buttonCheck_Click(object sender, EventArgs e)
        {
            ICriterion crit = null;
            if(radioButtonKolmogorov.Checked)
            {
                CritKolmogorov kolCrit = new CritKolmogorov(pc);
                kolCrit.SignificanceLevel = double.Parse(comboBoxA.SelectedItem.ToString());
                crit = kolCrit;
            }
            else if(radioButtonPirson.Checked)
            {
                CritPirson pirCrit = new CritPirson(pc);
                pirCrit.SignificanceLevel = double.Parse(comboBoxA.SelectedItem.ToString());
                crit = pirCrit;
            }

            (new FormHypResult(crit)).ShowDialog();
        }
Beispiel #2
0
        private void buttonCheck_Click(object sender, EventArgs e)
        {
            ICriterion crit = null;

            if (radioButtonKolmogorov.Checked)
            {
                CritKolmogorov kolCrit = new CritKolmogorov(pc);
                kolCrit.SignificanceLevel = double.Parse(comboBoxA.SelectedItem.ToString());
                crit = kolCrit;
            }
            else if (radioButtonPirson.Checked)
            {
                CritPirson pirCrit = new CritPirson(pc);
                pirCrit.SignificanceLevel = double.Parse(comboBoxA.SelectedItem.ToString());
                crit = pirCrit;
            }

            (new FormHypResult(crit)).ShowDialog();
        }