Esempio n. 1
0
        private void btnCancel_Click(object sender, EventArgs e)
        {
            this.Hide();
            frmLoginRegister FirstScreen = new frmLoginRegister();

            FirstScreen.ShowDialog();
        }
Esempio n. 2
0
        private void tmrSplash_Tick(object sender, EventArgs e)
        {
            tmrSplash.Stop();
            this.Hide();
            frmLoginRegister NextScreen = new frmLoginRegister();

            NextScreen.ShowDialog();
        }
        private void btnCancel_Click(object sender, EventArgs e)
        {
            //Hides the form
            this.Hide();
            //opens the last form that was open
            frmLoginRegister mylastscreen = new frmLoginRegister();

            mylastscreen.ShowDialog();
        }
Esempio n. 4
0
        private void btnCancel_Click(object sender, EventArgs e)
        {
            //Closes the Current Screen
            this.Hide();
            frmLoginRegister FirstScreen = new frmLoginRegister();

            //Opens The Previous Form Mentioned up above and assigned to the name: 'FirstScreen'
            FirstScreen.ShowDialog();
        }
        public void mute()
        {
            if (muteYes.Checked == true && muteNo.Checked == false)
            {
                playerDetails.activesound = true;
                string output = "Welcome To The GCSE I.C.T Quiz 2015";

                //NotifyIcon em = new NotifyIcon();
                //em.Visible = true;
                //em.Icon = System.Drawing.SystemIcons.Information;
                //em.ShowBalloonTip(3000, "Your Message is Playing", "", ToolTipIcon.Info);
                speech(output);


                if (loginClicked == true)
                {
                    this.Hide();

                    frmLogin login = new frmLogin();
                    login.ShowDialog();
                }
                if (registerClicked == true)
                {
                    this.Hide();
                    frmLoginRegister register = new frmLoginRegister();
                    register.ShowDialog();
                }
            }
            else if (muteNo.Checked == true && muteYes.Checked == false)
            {
                playerDetails.activesound = false;
                if (loginClicked == true)
                {
                    this.Hide();
                    frmLogin login = new frmLogin();
                    login.ShowDialog();
                }
                if (registerClicked == true)
                {
                    this.Hide();
                    frmPlayerSelectionNew register = new frmPlayerSelectionNew();
                    register.ShowDialog();
                }
            }
            else if (muteYes.Checked == true && muteNo.Checked == true)
            {
                MessageBox.Show("Please select a choice regarding if you want speech!!");
            }
            else if (muteNo.Checked == false && muteYes.Checked == false)
            {
                MessageBox.Show("Please select a choice regarding if you want speech!!");
            }
        }
Esempio n. 6
0
        void timer1_Tick(object sender, EventArgs e)
        {
            //checks if the value of the progress bar is not equal to 5
            if (pbSplashTimer.Value != 5)
            {
                //Adds one on to the progress bar
                pbSplashTimer.Value++;
            }

            else
            {
                //Stops the timer
                timer1.Stop();
                //Hides The Form
                this.Hide();
                //Opens the next form
                frmLoginRegister mynextscreen = new frmLoginRegister();
                mynextscreen.ShowDialog();
            }
        }