Example #1
0
        private void btnCancel_Click(object sender, EventArgs e)
        {
            camera.TurnOff();
            faceRecognition.StopRecognition();

            UCChooseLogin ucChooseLogin = new UCChooseLogin(mainForm);

            ucChooseLogin.Dock = DockStyle.Bottom;
            mainForm.Controls.Remove(this);
            mainForm.Controls.Add(ucChooseLogin);
        }
Example #2
0
        private void btnLogOut_Click(object sender, EventArgs e)
        {
            //Sustabdyti knygu skenavima
            ucScanBook.StopRecognising();

            mainForm.Controls.Remove(this);

            UCChooseLogin ucChooseLogin = new UCChooseLogin(mainForm);

            ucChooseLogin.Dock = DockStyle.Bottom;
            mainForm.Controls.Add(ucChooseLogin);
        }
Example #3
0
        private void MainForm_Load(object sender, EventArgs e)
        {
            ucChooseLogin      = new UCChooseLogin(this);
            ucChooseLogin.Dock = DockStyle.Bottom;
            this.Controls.Add(ucChooseLogin);
            BookDBHelper          b      = new BookDBHelper();
            HumanDBHelper         h      = new HumanDBHelper();
            List <Book>           books  = new List <Book>();
            List <Person>         people = new List <Person>();
            List <BookWithPerson> bp     = new List <BookWithPerson>();

            books  = b.SQLBooksRead();
            people = h.SQLPersonsRead();
            bp     = b.JoinBP(people, books);
        }