LoginForm.cs
(开头部分) 2KB这里只显示每个文件的开头 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 LoginFormDemo
{
public partial class LoginForm : Form
{
private bool isShowing = true;
public LoginForm()
{
InitializeComponent();
}
// 下载于www.51aspx.com
private void Authenticate()
{
Refresh();
if (! User.isValid(txtUserName.Text, txtPassword.Text))
{
MessageBox.Show("请输入正确的用户名和密码.",
"登录失败",
MessageBoxButtons.OK,
MessageBoxIcon.Information);
DialogResult = DialogResult.None; // keep the login form open
return;
}
// Valid user, pass the authentication
User.Initialize();
User.Instance.Username = txtUserName.Text;
User.Instance.Password = txtPassword.Text;
DialogResult = DialogResult.OK;
Refresh();
}
private void LoginForm_Load(object sender, EventArgs e)
{
Opacity = 0.0; // fully transparent
Activate();
Refresh();
fadeTimer.Start();
Refresh();
}
private void btnOk_Click(object sender, EventArgs e)
{
Authenticate();
}
private void btnCancel_Click(object sender, EventArgs e)
{
后面还有 40 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。