Beispiel #1
0
        private void Add_Click(object sender, EventArgs e)
        {
            LibrarianControl lc = new LibrarianControl();

            lc.addNewLibrarin(txtUsername.Text, txtPassword.Text);
            MessageBox.Show(lc.Message);
        }
Beispiel #2
0
        private void button2_Click(object sender, EventArgs e)
        {
            LibrarianControl myLib         = new LibrarianControl();
            bool             authenticated = myLib.checkLibrarianPassword(libUsername.Text, libPassword.Text);

            if (!authenticated)
            {
                MessageBox.Show(myLib.Message);
                return;
            }
            LibrarianMenu myLibrarianMenu = new LibrarianMenu();

            myLibrarianMenu.Show();
            this.Hide();
        }