Exemple #1
0
 private async void Window_Loaded(object sender, RoutedEventArgs e)
 {
     if (Properties.Settings.Default.ActiveFingerPrint)
     {
         try
         {
             if (ZFP == null && !(await BaseDataBase.InitializeFingerPrintDevice()))
             {
                 MyMessageBox.Show("جهاز البصامة الالكترونية غير جاهز");
             }
             if (!ZFP.Active)
             {
                 MyMessageBox.Show("جهاز البصامة الالكترونية غير جاهز");
             }
             else
             {
                 ZFP.OnCapture += ZFP_OnCapture;
             }
         }
         catch { MyMessageBox.Show("حدث خطأ أثناء تشغيل البصامة الالكترونية"); }
     }
 }