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