Exemple #1
0
 /// <summary>
 /// Updates the log with activity registered for the current voter
 /// </summary>
 /// <param name="ae">The activity to be logged</param>
 private void UpdateLog(ActivityEnum ae)
 {
     try
     {
         //Create the log DAO with setup information, activity and current voter.
         var ldo  = new LogDO(setupInfo.TableNo, currentVoter.PrimaryKey, ae);
         var ldao = new LogDAO(DigitalVoterList.GetInstanceFromServer(setupInfo.Ip));
         ldao.Create(ldo);
     }
     catch (Exception)
     {
         ConnectionError();
     }
 }
Exemple #2
0
 /// <summary>
 /// Updates the log with activity registered for the current voter
 /// </summary>
 /// <param name="ae">The activity to be logged</param>
 private void UpdateLog(ActivityEnum ae)
 {
     try
     {
         //Create the log DAO with setup information, activity and current voter.
         var ldo = new LogDO(setupInfo.TableNo, currentVoter.PrimaryKey, ae);
         var ldao = new LogDAO(DigitalVoterList.GetInstanceFromServer(setupInfo.Ip));
         ldao.Create(ldo);
     }
     catch (Exception)
     {
         ConnectionError();
     }
 }