Exemplo n.º 1
0
        private void Back_button_Click(object sender, EventArgs e)
        {
            Login_form login = new Login_form();

            login.Show();
            this.Hide();
        }
Exemplo n.º 2
0
        private void Logout(object sender, MouseEventArgs e)
        {
            Login_form h = new Login_form();

            h.Show();
            this.Hide();
        }
Exemplo n.º 3
0
        private void Register_button_Click(object sender, EventArgs e)
        {
            try
            {
                if (User_name_textBox.Text != "" && Password_textBox.Text != "")
                {
                    Digital_library_entity information = new Digital_library_entity();

                    information.User_name = User_name_textBox.Text;
                    information.Password  = Password_textBox.Text;

                    Digital_library_bl LibraryBL = new Digital_library_bl();

                    if (LibraryBL.setinformation(information))
                    {
                        //MessageBox.Show("Entry Successfull");
                        Login_form login = new Login_form();
                        login.Show();
                        this.Hide();
                        // clear();
                    }
                    else
                    {
                        MessageBox.Show("Wrong Entry!!");
                    }
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }