コード例 #1
0
        private void acceptButton_Click(object sender, RoutedEventArgs e)
        {
            var timeStamp = Globals.GetUnixTimeStamp();
            var hashData  = Globals.Hash(Globals.Password + timeStamp);

            var internetService = Globals.GetService("Internet", "SetVote") as InternetService.IInternetService;
            var merkezService   = Globals.GetService("Merkez", "SetVote") as MerkezService.IMerkezService;

            var resultMerkez = merkezService.SetVote(Globals.CurrentElection.ElectionId,
                                                     Globals.CurrentVoter.RegionId.Value,
                                                     Globals.CurrentVoter.District,
                                                     Globals.CurrentParty.Party.PartyId,
                                                     1,
                                                     timeStamp,
                                                     hashData);

            if (resultMerkez.AckCode == "Succeeded")
            {
                var result = internetService.SetVote(Globals.CurrentVoter.IdentityNo,
                                                     Globals.CurrentElection.ElectionId,
                                                     Globals.CurrentParty.Candidates[0].RegionId,
                                                     Globals.CurrentVoter.District,
                                                     timeStamp,
                                                     hashData);
                Globals.CurrenttrackingCode = resultMerkez.TrackingCode;

                m_mainWindow.changeStep(4);
            }
        }
コード例 #2
0
 private void trigger_TextChanged(object sender, TextChangedEventArgs e)
 {
     stopFingerPrintService();
     m_Timer.Stop();
     if (trigger.Text == "0")
     {
         m_mainWindow.changeStep(0);
     }
     else
     {
         m_mainWindow.changeStep(2);
     }
 }
コード例 #3
0
 private void partyVoted(object o, MouseButtonEventArgs e)
 {
     try
     {
         var votedParty = e.Source as PartyUserControl;
         if (votedParty != null)
         {
             Globals.CurrentParty = votedParty.m_ParyModel;
             m_mainWindow.changeStep(3);
         }
     }
     catch (Exception)
     {
     }
 }
コード例 #4
0
 private void trigger_TextChanged(object sender, TextChangedEventArgs e)
 {
     m_parentWindow.changeStep(1);
 }