Ejemplo n.º 1
0
        public UpdateFingerprint(int uid, MeetingController mc)
        {
            InitializeComponent();
            this.uid       = uid;
            this.mc        = mc;
            scannerHandler = mc.scannerHandler;

            userModel = new Model <User>();
            user      = userModel.Get(uid);

            RegisterCount = 0;

            if (mc.onGoingMeeting != null)
            {
                scannerHandler.Stop();
            }
            scannerHandler.InitializeDevice();
            scannerHandler.StartCaptureThread(scannerHandler.DoCaptureForMember);
            InfoLabel.Content = "Та хуруугаа 3 удаа уншуулна уу.";
        }
Ejemplo n.º 2
0
        public MeetingController(MainWindow mw)
        {
            meetingModel         = new Model <Meeting>();
            modifiedMeetingModel = new Model <ModifiedMeeting>();
            archivedMeetingModel = new Model <ArchivedMeeting>();
            eventModel           = new Model <Event>();
            userModel            = new Model <User>();
            userStatusModel      = new Model <UserStatus>();
            attendanceModel      = new Model <Attendance>();
            departmentModel      = new Model <Department>();
            positionModel        = new Model <Position>();
            statusModel          = new Model <Status>();
            adminModel           = new Model <Admin>();

            muModel = new Model <MeetingAndUser>();
            mdModel = new Model <MeetingAndDepartment>();
            mpModel = new Model <MeetingAndPosition>();

            scannerHandler = new ScannerHandler(mc: this);
            mainWindow     = mw;
        }