Exemplo n.º 1
0
 public LoginForm()
 {
     uiCon = SynchronizationContext.Current;
     InitializeComponent();
     user = new User();
     user.LoginEvent += LoginedCallback;
 }
Exemplo n.º 2
0
        public MainForm(User user)
        {
            heaer = new UcommHearerOne(RecognitionEvent, FalseRecognitionEvent);
            SetHearerEvent();
            this.user = user;
            this.speaker = new UcommSpeaker();
            InitializeComponent();
            mainCameraCapture = Cv.CreateCameraCapture(0);
            Task.Factory.StartNew( mainCameraLoop );
            lblUserGuide.Parent = pbxMainCamera;
            setFormText();

            InitializeVoiceMemo();
        }
Exemplo n.º 3
0
 public static void CheckAuthentication(byte[] fingerPrint, ref User user)
 {
     if (fingerPrint == null)
     {
         user.Id = int.MaxValue;
         user.FirstName = "FirstName";
         user.LastName = "LastName";
         user.Age = int.MaxValue;
         user.Handicap = HandicapType.NO_HANDICAP;
         user.Status = AuthStatus.LOGINED;
     }
 }