コード例 #1
0
        private void btnGame_Click(object sender, EventArgs e)
        {
            this.Hide();
            GAME f5 = new GAME();

            if (openedWindowGame)
            {
                f5.openedWindow = "true";
            }
            f5.Show();
        }
コード例 #2
0
        private void btnOui_Click(object sender, EventArgs e)
        {
            Close();
            INGAME f3 = new INGAME();

            f3.Close();
            f3.startingDay  = startingDay;
            f3.startingTime = startingTime;
            f3.f4duration   = duration;
            f3.idJeux       = idJeux;
            f3.btnStop_Click(sender, e);
            GAME f2 = new GAME();
        }
コード例 #3
0
        private void btnNon_Click(object sender, EventArgs e)
        {
            this.Hide();
            INGAME f3 = new INGAME();

            f3.startingDay  = startingDay;
            f3.startingTime = startingTime;
            f3.f4duration   = duration;
            f3.idJeux       = idJeux;
            GAME f2 = new GAME();

            f2.openedWindow = flag;
            f2.Show();
        }
コード例 #4
0
        public void btnStop_Click(object sender, EventArgs e)
        {
            timer1.Stop();
            watch.Stop();
            DateTime end      = DateTime.Now;
            string   duration = txtTimer.Text;

            if (f4duration != null)
            {
                duration = f4duration;
            }
            string requete = requeteSQL(startingDay, startingTime, end, duration, null, idJeux);

            sendRequeteSQL(requete);
            sessionCNED.ActiveForm.Close();
            GAME f2 = new GAME();

            Close();
            f2.Show();
        }