Пример #1
0
        private async void FINGER_Tapped(object sender, TappedRoutedEventArgs e)
        {
            if (Validations.CheckTextBox(tbxName, tbxAcadimicId).Equals(true))
            {
                var dialog = new MessageDialog("Check Valuing fields");
                await dialog.ShowAsync();
            }
            else
            {
                try
                {
                    await DatabaseManagement.CountAllStudentsData(newfpid);

                    try
                    {
                        await BluetoothConnection.SendCommand(newfpid.Text);

                        FingerStatusText.Text = gloablvalue.checksend(gloablvalue.RecivedText);
                        FINGER.IsTapEnabled   = false;
                        HideFINGER.Begin();
                        BtN_Menu.IsTapEnabled = false;
                    }
                    catch (Exception)
                    {
                        FingerStatusText.Text = "error in sending fingerprint id !";
                    }
                }
                catch (Exception)
                {
                    FingerStatusText.Text = "error in count student data!";
                }
            }
        }