예제 #1
0
 private void dgvEquipe2_CellMouseClick(object sender, DataGridViewCellMouseEventArgs e)
 {
     if (e.Button.Equals(MouseButtons.Left))
     {
         CtrlCoursMatch ccm   = new CtrlCoursMatch(connexion);
         int            index = e.RowIndex;
         ccm.Possession(partie, mitemps, dtpTimerGeneral.Value.ToString("HH:mm:ss"), equipe2, ids1.ElementAt(index));
         StopAllPersoTimer();
         timers2.ElementAt(index).Start();
     }
 }
예제 #2
0
 private void btnBut_Click(object sender, EventArgs e)
 {
     try {
         //MessageBox.Show("Buuuuuut !!");
         //StopAllPersoTimer();
         CtrlCoursMatch ccm = new CtrlCoursMatch(connexion);
         ccm.But(partie, mitemps, dtpTimerGeneral.Value.ToString("HH:mm:ss"));
     } catch (Exception ex) {
         throw ex;
     }
 }
예제 #3
0
 private void AddAllPossession()
 {
     try {
         CtrlCoursMatch ccm  = new CtrlCoursMatch(connexion);
         string[]       noms = { equipe1, equipe2 };
         for (int i = 0; i < possession.Length; i++)
         {
             foreach (KeyValuePair <string, string> keyvalue in possession[i])
             {
                 ccm.SetTempsPossession(partie, mitemps, noms[i], keyvalue.Key, keyvalue.Value);
             }
         }
     } catch (Exception ex) {
         throw ex;
     }
 }