Ejemplo n.º 1
0
        private void pictureBox5_Click(object sender, EventArgs e)
        {
            if (data.cekresultbutton1 == true && data.cektestbuttoninfo == true && data.cekhistoryresultbuttoninfo == true && data.cekhistoryresult2buttoninfo == true && data.cektestbutton2info == true)
            {
                Form1 awal = new Form1();
                awal.Show();
                this.Close();
            }
            else if (data.cekresultbutton1 == true && data.cekhistoryresultbuttoninfo == true && data.cekhistoryresult2buttoninfo == true && data.cektestbuttoninfo == false && data.cektestbutton2info == true)
            {
                Test test = new Test();
                test.Show();
                this.Close();

            }
            else if (data.cekresultbutton1 == true && data.cekhistoryresultbuttoninfo == true && data.cekhistoryresult2buttoninfo == true && data.cektestbuttoninfo == false && data.cektestbutton2info == false)
            {
                Test2 test2 = new Test2();
                test2.Show();
                this.Close();

            }
            else if (data.cekhistoryresultbuttoninfo == true && data.cekhistoryresult2buttoninfo == true && data.cekresultbutton1 == false && data.cektestbuttoninfo == false && data.cektestbutton2info == false)
            {
                Result result = new Result();
                this.Hide();
                result.Show();
            }
            else if (data.cekhistoryresult2buttoninfo == true && data.cekhistoryresultbuttoninfo == false && data.cekresultbutton1 == false & data.cektestbuttoninfo == false && data.cektestbutton2info == false)
            {
                HistoryResult hr = new HistoryResult();
                hr.Show();
                this.Close();
            }
            else if (data.cekhistoryresult2buttoninfo == false && data.cekhistoryresultbuttoninfo == false && data.cekresultbutton1 == false & data.cektestbuttoninfo == false && data.cektestbutton2info == false)
            {
                HistoryResult2 hr2 = new HistoryResult2();
                hr2.Show();
                this.Close();
            }
        }
Ejemplo n.º 2
0
        private void pictureBox2_Click(object sender, EventArgs e)
        {
            if (data.cekresultbutton2 == true && data.cektestbuttonabout == true && data.cekhistoryresultbuttonabout == true && data.cekhistoryresult2buttonabout == true && data.cektestbutton2about == true)
            {
                Form1 awal = new Form1();
                awal.Show();
                this.Close();
            }
            else if (data.cekresultbutton2 == true && data.cekhistoryresultbuttonabout == true && data.cekhistoryresult2buttonabout == true && data.cektestbuttonabout == false && data.cektestbutton2about == true)
            {
                Test test = new Test();
                test.Show();
                this.Close();

            }
            else if (data.cekresultbutton2 == true && data.cekhistoryresultbuttonabout == true && data.cekhistoryresult2buttonabout == true && data.cektestbuttonabout == false && data.cektestbutton2about == false)
            {
                Test2 test2 = new Test2();
                test2.Show();
                this.Close();

            }
            else if (data.cekhistoryresultbuttonabout == true && data.cekhistoryresult2buttonabout == true && data.cekresultbutton2 == false && data.cektestbuttonabout == false && data.cektestbutton2about == false)
            {
                Result result = new Result();
                this.Hide();
                result.Show();
            }
            else if (data.cekhistoryresult2buttonabout == true && data.cekhistoryresultbuttonabout == false && data.cekresultbutton2 == false & data.cektestbuttonabout == false && data.cektestbutton2about == false)
            {
                HistoryResult hr = new HistoryResult();
                hr.Show();
                this.Close();
            }
            else if (data.cekhistoryresult2buttonabout == false && data.cekhistoryresultbuttonabout == false && data.cekresultbutton2 == false & data.cektestbuttonabout == false && data.cektestbutton2about == false)
            {
                HistoryResult2 hr2 = new HistoryResult2();
                hr2.Show();
                this.Close();
            }
            //if (data.cekresultbutton2 == true && data.cektestbuttonabout == true && data.cekhistoryresultbuttonabout == true && data.cekhistoryresult2buttonabout == true)
            //{
            //    Form1 awal = new Form1();
            //    awal.Show();
            //    this.Close();
            //}
            //else if (data.cekresultbutton2 == true && data.cekhistoryresultbuttonabout == true && data.cekhistoryresult2buttonabout == true && data.cektestbuttonabout == false)
            //{
            //    Test test = new Test();
            //    test.Show();
            //    this.Close();

            //}
            //else if (data.cekhistoryresultbuttonabout == true && data.cekhistoryresult2buttonabout == true && data.cekresultbutton2 == false && data.cektestbuttonabout == false)
            //{
            //    Result result = new Result();
            //    this.Hide();
            //    result.Show();
            //}
            //else if (data.cekhistoryresult2buttonabout == true && data.cekhistoryresultbuttonabout == false && data.cekresultbutton2 == false & data.cektestbuttonabout == false)
            //{
            //    HistoryResult hr = new HistoryResult();
            //    hr.Show();
            //    this.Close();
            //}
            //else if (data.cekhistoryresult2buttonabout == false && data.cekhistoryresultbuttonabout == false && data.cekresultbutton2 == false & data.cektestbuttonabout == false)
            //{
            //    HistoryResult2 hr2 = new HistoryResult2();
            //    hr2.Show();
            //    this.Close();
            //}
        }
Ejemplo n.º 3
0
        private void pictureBox5_Click(object sender, EventArgs e)
        {
            data.Dvalue = 0;
                data.Ivalue = 0;
                data.Svalue = 0;
                data.Cvalue = 0;
            //Pilihan Value ada Disini
                //IVALUE Semua
                if (radioButton1.Checked == true)
                {
                    data.Ivalue += 1;
                }
                if (radioButton8.Checked == true)
                {
                    data.Ivalue += 1;
                }
                if (radioButton11.Checked == true)
                {
                    data.Ivalue += 1;
                }
                if (radioButton16.Checked == true)
                {
                    data.Ivalue += 1;
                }
                if (radioButton19.Checked == true)
                {
                    data.Ivalue += 1;
                }
                if (radioButton24.Checked == true)
                {
                    data.Ivalue += 1;
                }
                if (radioButton27.Checked == true)
                {
                    data.Ivalue += 1;
                }
                if (radioButton32.Checked == true)
                {
                    data.Ivalue += 1;
                }
                if (radioButton35.Checked == true)
                {
                    data.Ivalue += 1;
                }
                if (radioButton40.Checked == true)
                {
                    data.Ivalue += 1;
                }
                if (radioButton43.Checked == true)
                {
                    data.Ivalue += 1;
                }
                if (radioButton48.Checked == true)
                {
                    data.Ivalue += 1;
                }
                if (radioButton51.Checked == true)
                {
                    data.Ivalue += 1;
                }
                if(radioButton56.Checked==true)
                {
                data.Ivalue += 1;
                }
                if (radioButton59.Checked == true)
                {
                    data.Ivalue += 1;
                }
                if (radioButton64.Checked == true)
                {
                    data.Ivalue += 1;
                }
                if (radioButton67.Checked == true)
                {
                    data.Ivalue += 1;
                }
                if (radioButton72.Checked == true)
                {
                    data.Ivalue += 1;
                }
                if (radioButton75.Checked == true)
                {
                    data.Ivalue += 1;
                }
                if (radioButton79.Checked == true)
                {
                    data.Ivalue += 1;
                }

                //DVALUE SINI
                if (radioButton2.Checked == true)
                {
                    data.Dvalue += 1;
                }
                if (radioButton7.Checked == true)
                {
                    data.Dvalue += 1;
                }
                if (radioButton12.Checked == true)
                {
                    data.Dvalue += 1;
                }
                if (radioButton15.Checked == true)
                {
                    data.Dvalue += 1;
                }
                if (radioButton20.Checked == true)
                {
                    data.Dvalue += 1;
                }
                if (radioButton23.Checked == true)
                {
                    data.Dvalue += 1;
                }
                if (radioButton28.Checked == true)
                {
                    data.Dvalue += 1;
                }
                if (radioButton31.Checked == true)
                {
                    data.Dvalue += 1;
                }
                if (radioButton36.Checked == true)
                {
                    data.Dvalue += 1;
                }
                if (radioButton39.Checked == true)
                {
                    data.Dvalue += 1;
                }
                if (radioButton44.Checked == true)
                {
                    data.Dvalue += 1;
                }
                if (radioButton47.Checked == true)
                {
                    data.Dvalue += 1;
                }
                if (radioButton52.Checked == true)
                {
                    data.Dvalue += 1;
                }
                if (radioButton55.Checked == true)
                {
                    data.Dvalue += 1;
                }
                if (radioButton60.Checked == true)
                {
                    data.Dvalue += 1;
                }
                if (radioButton63.Checked == true)
                {
                    data.Dvalue += 1;
                }
                if (radioButton68.Checked == true)
                {
                    data.Dvalue += 1;
                }
                if (radioButton71.Checked == true)
                {
                    data.Dvalue += 1;
                }
                if (radioButton76.Checked == true)
                {
                    data.Dvalue += 1;
                }
                if (radioButton80.Checked == true)
                {
                    data.Dvalue += 1;
                }
                //CValue sini
                if (radioButton3.Checked == true)
                {
                    data.Cvalue += 1;
                }
                if (radioButton6.Checked == true)
                {
                    data.Cvalue += 1;
                }
                if (radioButton10.Checked == true)
                {
                    data.Cvalue += 1;
                }
                if (radioButton14.Checked == true)
                {
                    data.Cvalue += 1;
                }
                if (radioButton18.Checked == true)
                {
                    data.Cvalue += 1;
                }
                if (radioButton22.Checked == true)
                {
                    data.Cvalue += 1;
                }
                if (radioButton26.Checked == true)
                {
                    data.Cvalue += 1;
                }
                if (radioButton30.Checked == true)
                {
                    data.Cvalue += 1;
                }
                if (radioButton34.Checked == true)
                {
                    data.Cvalue += 1;
                }
                if (radioButton38.Checked == true)
                {
                    data.Cvalue += 1;
                }
                if (radioButton42.Checked == true)
                {
                    data.Cvalue += 1;
                }
                if (radioButton46.Checked == true)
                {
                    data.Cvalue += 1;
                }
                if (radioButton50.Checked == true)
                {
                    data.Cvalue += 1;
                }
                if (radioButton54.Checked == true)
                {
                    data.Cvalue += 1;
                }
                if (radioButton58.Checked == true)
                {
                    data.Cvalue += 1;
                }
                if (radioButton62.Checked == true)
                {
                    data.Cvalue += 1;
                }
                if (radioButton66.Checked == true)
                {
                    data.Cvalue += 1;
                }
                if (radioButton70.Checked == true)
                {
                    data.Cvalue += 1;
                }
                if (radioButton74.Checked == true)
                {
                    data.Cvalue += 1;
                }
                if (radioButton78.Checked == true)
                {
                    data.Cvalue += 1;
                }
                //S Value sini
                if (radioButton4.Checked == true)
                {
                    data.Svalue += 1;
                }
                if (radioButton5.Checked == true)
                {
                    data.Svalue += 1;
                }
                if (radioButton9.Checked == true)
                {
                    data.Svalue += 1;
                }
                if (radioButton13.Checked == true)
                {
                    data.Svalue += 1;
                }
                if (radioButton17.Checked == true)
                {
                    data.Svalue += 1;
                }
                if (radioButton21.Checked == true)
                {
                    data.Svalue += 1;
                }
                if (radioButton25.Checked == true)
                {
                    data.Svalue += 1;
                }
                if (radioButton29.Checked == true)
                {
                    data.Svalue += 1;
                }
                if (radioButton33.Checked == true)
                {
                    data.Svalue += 1;
                }
                if (radioButton37.Checked == true)
                {
                    data.Svalue += 1;
                }
                if (radioButton41.Checked == true)
                {
                    data.Svalue += 1;
                }
                if (radioButton45.Checked == true)
                {
                    data.Svalue += 1;
                }
                if (radioButton49.Checked == true)
                {
                    data.Svalue += 1;
                }
                if (radioButton53.Checked == true)
                {
                    data.Svalue += 1;
                }
                if (radioButton57.Checked == true)
                {
                    data.Svalue += 1;
                }
                if (radioButton61.Checked == true)
                {
                    data.Svalue += 1;
                }
                if (radioButton65.Checked == true)
                {
                    data.Svalue += 1;
                }
                if (radioButton69.Checked == true)
                {
                    data.Svalue += 1;
                }
                if (radioButton73.Checked == true)
                {
                    data.Svalue += 1;
                }
                if (radioButton77.Checked == true)
                {
                    data.Svalue += 1;
                }
                data.totalvalue = data.Dvalue + data.Ivalue+ data.Svalue+data.Cvalue;
            if(data.totalvalue!=20)
            {
                MessageBox.Show("Please check all the answers");
                MessageBox.Show(data.totalvalue.ToString());
            }
            else
            {
                //MessageBox.Show("IDCS " + data.Ivalue.ToString() + data.Dvalue.ToString() + data.Cvalue.ToString() + data.Svalue.ToString());
                //MessageBox.Show("Result score:\n" + data.totalvalue.ToString());
                Test2 test2 = new Test2();
                test2.Show();
                this.Close();
                data.D = data.Dvalue;
                data.I = data.Ivalue;
                data.S = data.Svalue;
                data.C = data.Cvalue;
                data.cektestbutton2info = false;
                data.cektestbutton2about = false;

            }
        }