private void BtnNext_Click(object sender, EventArgs e)
        {
            if (_isTest)
            {
                countPassedQuestion++;

                if (result.Text == correctAnswer)
                {
                    countCorrectAnswer++;
                }

                if (maxCount > countPassedQuestion)
                {
                    FormFairaTest1 form = new FormFairaTest1(true, _codec);
                    form.Show();
                    this.Close();
                }
                else
                {
                    int        mark = countCorrectAnswer * 5 / countPassedQuestion;
                    ResultForm form = new ResultForm(mark, Text, countCorrectAnswer, countPassedQuestion);
                    form.Show();
                    countPassedQuestion = 0;
                    countCorrectAnswer  = 0;
                    this.Close();
                }
            }
            else
            {
                FormFairaTest1 form = new FormFairaTest1(false, _codec);
                form.Show();
                this.Close();
            }
        }
Beispiel #2
0
        private void BtnNext_Click(object sender, EventArgs e)
        {
            string result = matrixTextBox1.Text
                            + "," + matrixTextBox2.Text
                            + "," + matrixTextBox3.Text
                            + "," + matrixTextBox4.Text
                            + "," + matrixTextBox5.Text
                            + "," + matrixTextBox6.Text
                            + "," + matrixTextBox7.Text
                            + "," + matrixTextBox8.Text
                            + "," + matrixTextBox9.Text
                            + "," + matrixTextBox10.Text
                            + "," + matrixTextBox11.Text
                            + "," + matrixTextBox12.Text
                            + "," + matrixTextBox13.Text
                            + "," + matrixTextBox14.Text
                            + "," + matrixTextBox15.Text
                            + "," + matrixTextBox16.Text
                            + "," + matrixTextBox17.Text
                            + "," + matrixTextBox18.Text
                            + "," + matrixTextBox19.Text
                            + "," + matrixTextBox20.Text
                            + "," + matrixTextBox21.Text
                            + "," + matrixTextBox22.Text
                            + "," + matrixTextBox23.Text
                            + "," + matrixTextBox24.Text
                            + "," + matrixTextBox25.Text;

            if (_isTest)
            {
                countPassedQuestion++;

                if (result == correctAnswer)
                {
                    countCorrectAnswer++;
                }

                if (maxCount > countPassedQuestion)
                {
                    FormElaesaTest5 form = new FormElaesaTest5(true);
                    form.Show();
                    this.Close();
                }
                else
                {
                    int        mark = countCorrectAnswer * 5 / countPassedQuestion;
                    ResultForm form = new ResultForm(mark, Text, countCorrectAnswer, countPassedQuestion);
                    form.Show();
                    countPassedQuestion = 4;
                    countCorrectAnswer  = 0;
                    this.Close();
                }
            }
            else
            {
                FormElaesaTest5 form = new FormElaesaTest5(false);
                form.Show();
                this.Close();
            }
        }
        private void subButton_Click(object sender, EventArgs e)
        {
            Matrix mA = new Matrix(oneDataGridView.Rows.Count, oneDataGridView.Columns.Count);
            Matrix mB = new Matrix(twoDataGridView.Rows.Count, twoDataGridView.Columns.Count);

            for (int i = 0; i < oneDataGridView.Rows.Count; i++)
            {
                for (int j = 0; j < oneDataGridView.Columns.Count; j++)
                {
                    if (oneDataGridView.Rows[i].Cells[j].Value == null)
                    {
                        mA[i, j] = 0;
                    }
                    else
                    {
                        mA[i, j] = double.Parse(oneDataGridView.Rows[i].Cells[j].Value.ToString());
                    }
                    if (twoDataGridView.Rows[i].Cells[j].Value == null)
                    {
                        mB[i, j] = 0;
                    }
                    else
                    {
                        mB[i, j] = double.Parse(twoDataGridView.Rows[i].Cells[j].Value.ToString());
                    }
                }
            }
            ResultForm fr = new ResultForm(mA - mB);

            fr.Show();
        }
Beispiel #4
0
        private void BtnNext_Click(object sender, EventArgs e)
        {
            if (_isTest)
            {
                countPassedQuestion++;

                if (YesRB.Checked == correctAnswer && NoRB.Checked != correctAnswer)
                {
                    countCorrectAnswer++;
                }

                if (maxCount > countPassedQuestion)
                {
                    FormPrimaryNon_binaryTest2 form = new FormPrimaryNon_binaryTest2(true);
                    form.Show();
                    this.Close();
                }
                else
                {
                    int        mark = countCorrectAnswer * 5 / countPassedQuestion;
                    ResultForm form = new ResultForm(mark, Text, countCorrectAnswer, countPassedQuestion);
                    form.Show();
                    countPassedQuestion = 5;
                    countCorrectAnswer  = 0;
                    this.Close();
                }
            }
            else
            {
                FormPrimaryNon_binaryTest2 form = new FormPrimaryNon_binaryTest2(false);
                form.Show();
                this.Close();
            }
        }
        private void BtnNext_Click(object sender, EventArgs e)
        {
            if (_isTest)
            {
                countPassedQuestion++;

                if (radioButton1.Checked == correctAnswer && radioButton2.Checked != correctAnswer)
                {
                    countCorrectAnswer++;
                }

                if (maxCount > countPassedQuestion)
                {
                    FormModuleTest6 form = new FormModuleTest6(true);
                    form.Show();
                    this.Close();
                }
                else
                {
                    int        mark = countCorrectAnswer * 5 / countPassedQuestion;
                    ResultForm form = new ResultForm(mark, Text, countCorrectAnswer, countPassedQuestion);
                    form.Show();
                    countPassedQuestion = 5;
                    countCorrectAnswer  = 0;
                    this.Close();
                }
            }
            else
            {
                FormModuleTest6 form = new FormModuleTest6(false);
                form.Show();
                this.Close();
            }
        }
Beispiel #6
0
 private void buttonRunOne_Click(object sender, EventArgs e)
 {
     try
     {
         var i = listViewFormula.SelectedItems[0] as ListViewItem;
         foreach (var j in spiderFormulas)
         {
             if (j.searchengine == i.SubItems[1].Text &&
                 j.keyword == i.SubItems[2].Text &&
                 j.interestcontentregex == i.SubItems[3].Text &&
                 j.continuepage.ToString().ToLower() == i.SubItems[4].Text.ToLower() &&
                 j.continuepagecount.ToString() == i.SubItems[5].Text &&
                 (j.name == i.SubItems[6].Text ||
                  j.name == null && i.SubItems[6].Text == "")
                 )
             {
                 var form = new ResultForm(new List <SpiderFormula>()
                 {
                     j
                 });
                 form.Text = "「" + j.searchengine + "」 " + j.keyword;
                 form.Show();
             }
         }
     }
     catch (Exception)
     {
     }
 }
Beispiel #7
0
        private void b_Algorithm_Click(object sender, EventArgs e)
        {
            this.fuzzyRelation = new FuzzyRelations(this.control);
            Matrix[,] Result   = this.fuzzyRelation.Algorithm();

            ResultForm rForm = new ResultForm(this.control, Result);

            rForm.Show();
        }
Beispiel #8
0
 private void btn_ready_Click(object sender, RoutedEventArgs e)
 {
     if (_rooms != null && _courses != null && _prelectors != null && _studentGroups != null && _courseClasses != null &&
         _rooms.Count > 0 && _courses.Count > 0 && _prelectors.Count > 0 && _studentGroups.Count > 0 && _courseClasses.Count > 0)
     {
         ResultForm resultForm = new ResultForm();
         resultForm.Show();
     }
     else
     {
         MessageBox.Show("Verilerin bir veya birkaçı hazır değil veya boş.", "Veri Hazır Değil!", MessageBoxButton.OK, MessageBoxImage.Warning);
     }
 }
        private void button3_Click(object sender, EventArgs e)
        {
            ResultForm rf = new ResultForm();

            rf.mainLevelsForm = this.mainLevelsForm;
            rf.Show();
            this.Hide();


            //phrasesLevel phrasesLevel = new phrasesLevel();
            //phrasesLevel.mainLevelsForm = this.mainLevelsForm;
            //this.Hide();
            //phrasesLevel.Show();
        }
        private void BtnNext_Click(object sender, EventArgs e)
        {
            string result = textBox1.Text
                            + "," + textBox2.Text
                            + "," + textBox3.Text
                            + "," + textBox4.Text
                            + "," + textBox5.Text
                            + "," + textBox6.Text
                            + "," + textBox7.Text
                            + "," + textBox8.Text
                            + "," + textBox9.Text
                            + "," + textBox10.Text;

            if (_isTest)
            {
                countPassedQuestion++;

                if (result == correctAnswer)
                {
                    countCorrectAnswer++;
                }

                if (maxCount > countPassedQuestion)
                {
                    FormHaffmenaTest2 form = new FormHaffmenaTest2(true);
                    form.Show();
                    this.Close();
                }
                else
                {
                    int        mark = countCorrectAnswer * 5 / countPassedQuestion;
                    ResultForm form = new ResultForm(mark, Text, countCorrectAnswer, countPassedQuestion);
                    form.Show();
                    countPassedQuestion = 2;
                    countCorrectAnswer  = 0;
                    this.Close();
                }
            }
            else
            {
                FormHaffmenaTest2 form = new FormHaffmenaTest2(false);
                form.Show();
                this.Close();
            }
        }
        private void BtnNext_Click(object sender, EventArgs e)
        {
            if (_isTest)
            {
                countPassedQuestion++;

                string result = "";
                foreach (DataGridViewRow row in matrixGridView.Rows)
                {
                    result += row.Cells[2].Value.ToString() + ",";
                }
                result = result.Remove(result.Length - 1);

                if (result == correctAnswer)
                {
                    countCorrectAnswer++;
                }

                if (maxCount > countPassedQuestion)
                {
                    FormShenona_FanoTest1 form = new FormShenona_FanoTest1(true);
                    form.Show();
                    this.Close();
                }
                else
                {
                    int        mark = countCorrectAnswer * 5 / countPassedQuestion;
                    ResultForm form = new ResultForm(mark, Text, countCorrectAnswer, countPassedQuestion);
                    form.Show();
                    countPassedQuestion = 0;
                    countCorrectAnswer  = 0;
                    this.Close();
                }
            }
            else
            {
                FormShenona_FanoTest1 form = new FormShenona_FanoTest1(false);
                form.Show();
                this.Close();
            }
        }
        private void twoTriangle_Click(object sender, EventArgs e)
        {
            Matrix mB = new Matrix(twoDataGridView.Rows.Count, twoDataGridView.Columns.Count);

            for (int i = 0; i < twoDataGridView.Rows.Count; i++)
            {
                for (int j = 0; j < twoDataGridView.Columns.Count; j++)
                {
                    if (twoDataGridView.Rows[i].Cells[j].Value == null)
                    {
                        mB[i, j] = 0;
                    }
                    else
                    {
                        mB[i, j] = double.Parse(twoDataGridView.Rows[i].Cells[j].Value.ToString());
                    }
                }
            }
            ResultForm fr = new ResultForm(FuncMatrix.Triangle(mB));

            fr.Show();
        }
        private void MulConstButton_Click(object sender, EventArgs e)
        {
            Matrix mA = new Matrix(oneDataGridView.Rows.Count, oneDataGridView.Columns.Count);

            for (int i = 0; i < oneDataGridView.Rows.Count; i++)
            {
                for (int j = 0; j < oneDataGridView.Columns.Count; j++)
                {
                    if (oneDataGridView.Rows[i].Cells[j].Value == null)
                    {
                        mA[i, j] = 0;
                    }
                    else
                    {
                        mA[i, j] = double.Parse(oneDataGridView.Rows[i].Cells[j].Value.ToString());
                    }
                }
            }
            ResultForm fr = new ResultForm((mA) * (MulConstTextBox.Text != string.Empty ? double.Parse(MulConstTextBox.Text) : 1));

            fr.Show();
        }
Beispiel #14
0
        private void button1_Click(object sender, EventArgs e)
        {
            string result = text1.Text
                            + "," + text2.Text
                            + "," + text3.Text
                            + "," + text4.Text
                            + "," + text5.Text
                            + "," + text6.Text
                            + "," + text7.Text
                            + "," + text8.Text
                            + "," + text9.Text
                            + "," + text10.Text
                            + "," + text11.Text
                            + "," + text12.Text
                            + "," + text13.Text
                            + "," + text14.Text
                            + "," + text15.Text
                            + "," + text16.Text
                            + "," + text17.Text
                            + "," + text18.Text
                            + "," + text19.Text
                            + "," + text20.Text
                            + "," + text31.Text
                            + "," + text32.Text
                            + "," + text33.Text
                            + "," + text34.Text
                            + "," + text35.Text
                            + "," + text36.Text
                            + "," + text37.Text
                            + "," + text38.Text
                            + "," + text39.Text
                            + "," + text40.Text
                            + "," + text41.Text
                            + "," + text42.Text
                            + "," + text43.Text
                            + "," + text44.Text
                            + "," + text45.Text
                            + "," + text46.Text
                            + "," + text47.Text
                            + "," + text48.Text
                            + "," + text49.Text
                            + "," + text50.Text
                            + "," + text51.Text
                            + "," + text52.Text
                            + "," + text53.Text
                            + "," + text54.Text;

            if (_isTest)
            {
                countPassedQuestion++;

                if (result == correctAnswer)
                {
                    countCorrectAnswer++;
                }

                if (maxCount > countPassedQuestion)
                {
                    FormVarshamovaTest1 form = new FormVarshamovaTest1(true);
                    form.Show();
                    this.Close();
                }
                else
                {
                    int        mark = countCorrectAnswer * 5 / countPassedQuestion;
                    ResultForm form = new ResultForm(mark, Text, countCorrectAnswer, countPassedQuestion);
                    form.Show();
                    countPassedQuestion = 1;
                    countCorrectAnswer  = 0;
                    this.Close();
                }
            }
            else
            {
                FormVarshamovaTest1 form = new FormVarshamovaTest1(false);
                form.Show();
                this.Close();
            }
        }
Beispiel #15
0
        private void aVGResultByScoreToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ResultForm tempForm = new ResultForm();

            tempForm.Show();
        }
Beispiel #16
0
        private void buttonRunAll_Click(object sender, EventArgs e)
        {
            var form = new ResultForm(spiderFormulas);

            form.Show();
        }