Exemplo n.º 1
0
        //###########################################CLASS IdentificationManager EVENTS#####################################################
        //event is raised when the class is loaded
        private void ClassLoad(object sender, EventArgs e)
        {
            try
            {
                if (!(RemoteServerLib.ProcStatic.IsSystemAccessAdmin(_userInfo) ||
                      RemoteServerLib.ProcStatic.IsSystemAccessIDMaker(_userInfo)))
                {
                    throw new Exception("You are not authorized to access this module.");
                }

                _identificationManager = new IdentificationLogic(_userInfo);

                _frmIdentificationSearch = new SearchList();
                _frmIdentificationSearch.OnDoubleClickEnter += new SearchListDataGridDoubleClickEnter(_frmIdentificationSearchOnDoubleClickEnter);
                _frmIdentificationSearch.LocationPoint       = new Point(50, 300);
                _frmIdentificationSearch.AdoptGridSize       = false;
                _frmIdentificationSearch.MdiParent           = this;

                lblRecordDate.Text = "Record Date: " + DateTime.Parse(_identificationManager.ServerDateTime).ToString();
            }
            catch (Exception ex)
            {
                RemoteClient.ProcStatic.ShowErrorDialog(ex.Message, "Error Authenticating");

                this.Close();
            }
        }//---------------------
        public IdentificationEmployeeUpdate(CommonExchange.SysAccess userInfo, CommonExchange.Employee employeeInfo,
                                            IdentificationLogic identificationManager)
            : base(userInfo, identificationManager)
        {
            this.InitializeComponent();

            _employeeInfo     = employeeInfo;
            _employeeInfoTemp = (CommonExchange.Employee)employeeInfo.Clone();

            this.FormClosing     += new System.Windows.Forms.FormClosingEventHandler(IdentificationEmployeeUpdateFormClosing);
            this.btnClose.Click  += new EventHandler(btnCloseClick);
            this.btnUpdate.Click += new EventHandler(btnUpdateClick);
        }
Exemplo n.º 3
0
        public Identification(CommonExchange.SysAccess userInfo, IdentificationLogic identificationManager)
        {
            this.InitializeComponent();

            _userInfo = userInfo;
            _identificationManager = identificationManager;

            _smartLinkSocket = null;

            this.InitializeSmartLinkSocket();

            this.Load += new EventHandler(ClassLoad);
            this.btnGenerateReader.Click += new EventHandler(btnGenerateReaderClick);
            this.pbxPhoto.Click          += new EventHandler(pbxPhotoClick);
            //this.txtCardNumber.Validated += new EventHandler(txtCardNumberValidated);
        }
        public IdentificationStudentUpdate(CommonExchange.SysAccess userInfo, CommonExchange.Student studentInfo,
                                           IdentificationLogic identificationManager)
            : base(userInfo, identificationManager)
        {
            this.InitializeComponent();

            _studentInfo     = studentInfo;
            _studentInfoTemp = (CommonExchange.Student)studentInfo.Clone();

            this.FormClosing     += new System.Windows.Forms.FormClosingEventHandler(IdentificationStudentUpdateFormClosing);
            this.btnClose.Click  += new EventHandler(btnCloseClick);
            this.btnUpdate.Click += new EventHandler(btnUpdateClick);

            if (!String.IsNullOrEmpty(_studentInfo.PersonInfo.FilePath))
            {
                this.pbxPhoto.Image = Image.FromFile(_studentInfo.PersonInfo.FilePath);
            }
        }