下载此文档

c#图书管理系统源代码.doc


文档分类:IT计算机 | 页数:约59页 举报非法文档有奖
1/59
下载提示
  • 1.该资料是网友上传的,本站提供全文预览,预览什么样,下载就什么样。
  • 2.下载该文档所得收入归上传者、原创者。
  • 3.下载的文档,不会出现我们的网址水印。
1/59 下载此文档
文档列表 文档介绍
主要代码:
public partial class LoginForm : Form{
public static string uacc;
public static string upsw;
public static string uname;
public static string usex;
public static string upart;
public static string uright;
public LoginForm()
{
InitializeComponent();
}
private void loginbtn_Click(object sender, EventArgs e)
{
if (thisuseracctxtTextTrim() == "" && thispswtxtText == "")
{
MessageBoxShow("请输入您的用户名和密码!", "提示!");
return;
}
try
{
string sql;
sql = "select * from tb_user where uacc='" + thisuseracctxtText + "' and upsw='" + thispswtxtText + "'";
OleDbDataReader dr = DBHelpOleReader(sql);
drRead();
if (drHasRows)
{
uacc = thisuseracctxtText;
upsw = thispswtxtText;
uname = dr["uname"]ToString();
usex = dr["usex"]ToString();
upart = dr["upart"]ToString();
uright = dr["uright"]ToString();
MainForm af = new MainForm(this);
thisHide();
thisuseracctxtClear();
thispswtxtClear();
afShow();
}
else
{
MessageBoxShow("账号或密码错误!", "提示!");
thisuseracctxtClear();
thispswtxtClear();
thisuseracctxtFocus();
}
}
catch (Exception)
{
MessageBoxShow("数据库无法连接!", "警告!");
}
}
private void cancelbtn_Click(object sender, EventArgs e)
{
ApplicationExit();
}
private void LoginForm

c#图书管理系统源代码 来自淘豆网www.taodocs.com转载请标明出处.

相关文档 更多>>
非法内容举报中心
文档信息
  • 页数59
  • 收藏数0 收藏
  • 顶次数0
  • 上传人1314042****
  • 文件大小476 KB
  • 时间2021-02-25