登陆界面 using System; using System
Collections
Generic; using System
ComponentModel; using System
Data; using System
Drawing; using System
Text; using System
Windows
Forms; namespace Labrary { public partial class FormLogin : Form { public FormLogin() { InitializeComponent(); } /// /// 验¨¦证¡è控
件t /// /// private bool ValidControl() { if (this
Text == "") { MessageBox
Show("请填写用户名
"); this
Focus(); return false; } if (this
= "admin") { if (
UserManage
ObjUser
IsHasID(All
dbo, this
Text)) { MessageBox
Show("不存在此用户
"); this
Text = ""; this
Focus(); return false; } } if (this
= "admin") { UserManage
ObjUser user= new UserManage
ObjUser(this
Text, All
dbo); if (user
= this
Text) { MessageBox
Show("密码错误
"); this
Text = ""; t