Beispiel #1
0
        private void DoFeedback()
        {
            int TotalVotes = Directory.GetFiles(Program.SetupConfig.VoteResultPath, "*.vote", SearchOption.TopDirectoryOnly).Length;

            try
            {
                JMOServiceReference.JMOVoteServiceClient client = new JMOServiceReference.JMOVoteServiceClient();
                client.VoteFeedback(Program.SetupConfig.Booth, TotalVotes, true);
            }
            catch (Exception)
            {
            }
        }
Beispiel #2
0
 private void timer1_Tick(object sender, EventArgs e)
 {
     if (Program.SetupConfig.IsControllerActive)
     {
         try
         {
             JMOServiceReference.JMOVoteServiceClient client = new JMOServiceReference.JMOVoteServiceClient();
             AllowVoting(client.AllowVote(Program.SetupConfig.Booth), "Waiting...");
         }
         catch (Exception)
         {
             AllowVoting(false, "Link Failure");
         }
     }
 }