Example #1
0
        private void btnProjet_Click(object sender, EventArgs e)
        {
            PROJET f1 = new PROJET();

            Hide();
            f1.Show();
        }
Example #2
0
        public void btnStop_Click(object sender, EventArgs e)
        {
            timer1.Stop();
            watch.Stop();
            while (saveProjetSaving == false)
            {
                saveProjet();
            }
            saveProjetSaving = false;


            MessageBox.Show(objectifs, commentaires);

            string duration = txtTimer.Text;

            if (f4duration != null)
            {
                duration = f4duration;
            }
            DateTime end     = DateTime.Now;
            string   requete = requeteSQL(startingDay, startingTime, end, duration, idProjet, null, objectifs, commentaires);

            sendRequeteSQL(requete);
            //Fermer sessionProjet
            sessionProjet.ActiveForm.Close();
            commentaires = "";
            objectifs    = "";
            PROJET f2 = new PROJET();

            f2.isOpenedWindow = false;
            f2.Show();
        }
Example #3
0
        private void btnNon_Click(object sender, EventArgs e)
        {
            this.Hide();
            sessionProjet f3 = new sessionProjet();

            f3.startingDay  = startingDay;
            f3.startingTime = startingTime;
            f3.f4duration   = duration;
            f3.nomDuProjet  = tableName;
            f3.idProjet     = idProjet;
            PROJET f2 = new PROJET();

            f2.isOpenedWindow = true;
            f2.Show();
        }