毕业论文

打赏
当前位置: 毕业论文 > 计算机论文 >

《计算机网络》课程通用题库管理系统设计与实现(10)

时间:2016-11-22 23:28来源:毕业论文
M_密码重置 m_密码重置 = new M_密码重置(); m_密码重置.Z_账号 = textBox1.Text; m_密码重置.ShowDialog(); }} private void lbl注册_Click(object sender, EventArgs e) { this.Visible =


                M_密码重置 m_密码重置 = new M_密码重置();
                m_密码重置.Z_账号 = textBox1.Text;
                m_密码重置.ShowDialog();
            }}
        private void lbl注册_Click(object sender, EventArgs e)
        {
            this.Visible = false;
            G_个人信息 g_个人信息 = new G_个人信息();
            g_个人信息.ShowDialog();
            this.Visible = true;
        }
        private void btnOK_Click(object sender, EventArgs e)
        {
            if (textBox1.Text == "" || textBox2.Text == "")
            {
                MessageBox.Show("账号和密码不能空");
            }
            else
            {
                System.Data.DataTable dt = BL_数据管理.D_登陆(textBox1.Text, textBox2.Text);
                if (dt.Rows.Count > 0)
                {
                    if (dt.Rows[0]["Q_权限"] != DBNull.Value)
                    {
                        this.Visible = false;
                        MainForm mainform = new MainForm();
                        mainform.ID_用户 = Convert.ToInt32(dt.Rows[0]["ID"].ToString());
                        mainform.Q_权限 = Convert.ToInt32(dt.Rows[0]["Q_权限"].ToString());
                        mainform.ShowDialog();
                        this.Visible = true;
                    }
                    else
                    { 《计算机网络》课程通用题库管理系统设计与实现(10):http://www.youerw.com/jisuanji/lunwen_183.html
------分隔线----------------------------
推荐内容