Form1.cs
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
}
private void button1_Click(object sender, EventArgs e)
{
var uid = textBox1.Text;
var pwd = textBox2.Text;
if (uid == " " || pwd == " ")
{
MessageBox.Show("账号密码不能为空!", "提示", MessageBoxButtons.OKCancel, MessageBoxIcon.Warning);
}
else
{
var sql = string.Format("select * from users where username = '{0}' and password = '{1}'", uid, pwd);
var dt = DBHelper.GetData(sql);
if (dt.Rows.Count == 1)
{
MessageBox.Show("登陆成功!", "提示", MessageBoxButtons.OKCancel, MessageBoxIcon.Asterisk);
Form3 f3 = new Form3();
this.Hide();
f3.Show();
}
else
{
MessageBox.Show("账号密码错误!", "提示", MessageBoxButtons.OKCancel, MessageBoxIcon.Warning);
}
}
}
后面还有 8 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
