private void Back_button_Click(object sender, EventArgs e) { Login_form login = new Login_form(); login.Show(); this.Hide(); }
private void Logout(object sender, MouseEventArgs e) { Login_form h = new Login_form(); h.Show(); this.Hide(); }
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); } }