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) { } }
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"); } } }