示例#1
0
        private async void BtnGo_Click(object sender, System.Windows.RoutedEventArgs e)
        {
            if (!string.IsNullOrWhiteSpace(Pin.Text))
            {
                try
                {
                    _voter = await ElectionConfigurationService.LoginVoter(new Voter { VoterCode = Pin.Text });

                    ConfirmVoterAsync();
                }
                catch (Exception exception)
                {
                    MessageBox.Show(exception.Message, "Election Login Error");
                    throw;
                }
            }
        }