示例#1
0
        private void btnCned_Click(object sender, EventArgs e)
        {
            CNED f2 = new CNED();

            if (openedWindowCned)
            {
                f2.openedWindow = "true";
            }
            f2.Show();
            Hide();
        }
示例#2
0
        private void btnNon_Click(object sender, EventArgs e)
        {
            this.Hide();
            sessionCNED f3 = new sessionCNED();

            f3.startingDay  = startingDay;
            f3.startingTime = startingTime;
            f3.f4duration   = duration;
            f3.tableName    = tableName;
            CNED f2 = new CNED();

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

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

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

            f2.openedWindow = null;
            Close();
            f2.Show();
        }