Exemplo n.º 1
0
        /// <summary>
        /// متذ سازنده
        /// </summary>
        public MainViewModel()
        {
            if (IsInDesignMode)
            {
                //Logs = new ObservableCollection<Log>()
                //{
                //    new Log()
                //    {
                //        Employee=new Employee(){FirstName="Abbas",LastName="Allahyari"},
                //        EventTime=DateTime.Now,
                //        AttendanceMethod=AttendanceMethod.FaceDetection,
                //        AttendanceMethodResult=AttendanceMethodResult.Failure
                //    },
                //};
            }
            else
            {
                AutomatedAttendanceSystem = new AutomatedAttendanceSystemProxy();
                FaceRecognitionService    = new FaceRecognitionServiceProxy();
                QRService = new QRServiceProxy();

                this.FRSSettings = FaceRecognitionService.GetSettings(false);
                retrieveLogs();
            }
            System.Threading.Thread.CurrentThread.CurrentUICulture = new CultureInfo("fa-IR");
            System.Threading.Thread.CurrentThread.CurrentCulture   = new CultureInfo("fa-IR");
        }
Exemplo n.º 2
0
 private void restoreDefaultSettings()
 {
     FRSSettings = FaceRecognitionService.GetSettings(true);
 }