コード例 #1
0
        public KBC()
        {
            InitializeComponent();

            Form3 F3 = new Form3();
        }
コード例 #2
0
ファイル: Form2.cs プロジェクト: coreblazer/ProiectPARC
        private void OPT_1_Click(object sender, EventArgs e)
        {
            if (Question_box.Text == "WHO WAS THE FOUNDER OF PAKISTAN?")
            {
                Question_box.Text = "WHEN DID SOVIENT UNION BREAK DOWN ?";
                OPT_1.Text        = "A ) 1969";
                OPT_2.Text        = "B) 1979";
                OPT_3.Text        = "C) 1989";
                OPT_4.Text        = "D) 1999";


                F3.label1.Text = "YOU HAVE WON 1,000";
                label17.Text   = F3.label1.Text;

                F3.label1.Refresh();
            }
            else if (Question_box.Text == "WHICH IS THE COMMON EUROPIAN CURRENCY ?")
            {
                Question_box.Text = "WHAT IS THE SYMBOL OF VICTORY ?";
                OPT_1.Text        = "A ) DOWNWARD THUMB";
                OPT_2.Text        = "B) DOVE WITH OLIVE BRANCHES";
                OPT_3.Text        = "C) HORES";
                OPT_4.Text        = "D) TWO FINGER IN V SHAPE";


                F3.label1.Text = "YOU HAVE WON Rs. 10,000";
                label17.Text   = F3.label1.Text;
                F3.label1.Refresh();
            }
            else if (Question_box.Text == "WHO LOST HIS TEETH WHILE WRITING MAHABHARAT ?")
            {
                F3.label1.Text    = "YOU WON 40,000";
                Question_box.Text = "WHO ADOPTED UNIVERSAL DECLARATION OF HUMAN RIGHTS ?";
                OPT_1.Text        = "A ) AMNESTY INTERNATIONAL";
                OPT_2.Text        = "B) U N";
                OPT_3.Text        = "C) NATO";
                OPT_4.Text        = "D) COMMON WEALTH";

                F3.label1.Text = "YOU HAVE WON Rs. 40,000";
                label17.Text   = F3.label1.Text;
                F3.label1.Refresh();
            }
            else if (Question_box.Text == "IN THE RHYME WHERE DID HUMPTY DUMPTY SIT ?")
            {
                F3.label1.Text    = "YOU WON 6,25,000";
                Question_box.Text = "WHO WAS ALSO A BRITISH CITIZEN ?";
                OPT_1.Text        = "A ) ADOLF HITLER";
                OPT_2.Text        = "B) SARDAR PATEL";
                OPT_3.Text        = "C) PANDIT NEHRU";
                OPT_4.Text        = "D) BENITTO MUSSOLINI";
                label17.Text      = F3.label1.Text;
                F3.label1.Refresh();
            }
            else if (Question_box.Text == "HOW MANY OF ENGLISH MUNARCHS ARE NAMED ELIZABETH ?")
            {
                F3.label1.Text    = "YOU WON 50,00,000";
                Question_box.Text = "WHICH PAKISTHANI LEADER SIGNED SIMLA AGREEMENT ?";
                OPT_1.Text        = "A)ZIA HL HAQ";
                OPT_2.Text        = "B) AGAB KHAN";
                OPT_3.Text        = "C) ZULFIKAR ALI BHUTTO";
                OPT_4.Text        = "D) YAHYA KHAN";

                F3.label1.Text = "YOU HAVE WON Rs. 50,00,000";
                label17.Text   = F3.label1.Text;
                F3.label1.Refresh();
            }
            else
            {
                this.Hide();
                Form3 F3 = new Form3();
                F3.label1.Text = label17.Text;
                F3.Show();
            }
        }