Daila/login.cs
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
//51aspx.com
using System.Data.OleDb;
using Daila.NewClass;
using Daila.NewMehod;
namespace Daila
{
public partial class login : Form
{
public login()
{
InitializeComponent();
}
private void bntOK_Click(object sender, EventArgs e)
{
if (txtUser.Text == "")
{
MessageBox.Show("用户名不能为空!","提示");
txtUser.Focus();
return;
}
if (txtPassword.Text == "")
{
MessageBox.Show("密码不能为空!", "提示");
txtPassword.Focus();
return;
}
tbEmployeeClass tbClass = new tbEmployeeClass();
tbClass.EmpEngish = txtUser.Text;
tbClass.EmpPasword = txtPassword.Text;
tbEmployeeMenthod tbMenhod=new tbEmployeeMenthod();
if (tbMenhod.tbEmpLog(tbClass) == 1)
{
frmMain frman = new frmMain();
frman.Show();
this.Hide();
}
else
{
MessageBox.Show("登录失败!","提示");
txtPassword.Text = "";
txtUser.Text = "";
}
}
private void bntEsce_Click(object sender, EventArgs e)
{
this.Close();
}
private void login_Load(object sender, EventArgs e)
{
后面还有 4 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
