private void admin_login_Click(object sender, RoutedEventArgs e)
        {
            var dto = new LMS.Entities.AdminDTO();

            dto.Name     = admin_user.Text;
            dto.Password = admin_pass.Password;
            var v = LMS.BOA.AdminBO.checkadmin(dto);

            if (v == 1)
            {
                Admin_Login a = new Admin_Login();
                a.Hide();
                Admin_Panel b = new Admin_Panel();
                b.Show();
            }
            else
            {
                MessageBox.Show("Wrong Credentials");
            }
        }
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            var dto = new LMS.Entities.NewMemberDTO();

            dto.MemberName = txt_memberusername.Text;
            dto.Password   = userpassword.Password;

            Username.name = dto.MemberName;
            var v = LMS.DAL.NewMemberDAO.checkmember(dto);

            if (v == 1)
            {
                Admin_Login a = new Admin_Login();
                a.Hide();
                Member_Panel b = new Member_Panel();
                b.Show();
            }
            else
            {
                MessageBox.Show("Wrong Username or Password");
            }
        }