xk/frmLogin.cs
(开头部分) 3KB这里只显示每个文件的开头 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;
using System.Drawing.Drawing2D;
namespace xk
{
public partial class frmLogin : Form
{
public frmLogin()
{
InitializeComponent();
}
private void frmLogin_Load(object sender, EventArgs e)
{
this.txtid.Region = new Region(GetRoundRectPath(new RectangleF(0, 0, this.txtid.Width, this.txtid.Height), 10f));
this.txtpwd.Region = new Region(GetRoundRectPath(new RectangleF(0, 0, this.txtpwd.Width, this.txtpwd.Height), 10f));
this.label3.Region = new Region(GetRoundRectPath(new RectangleF(0, 0, this.label3.Width, this.label3.Height), 10f));
txtid.Focus();
}
private void btnlogin_Click(object sender, EventArgs e)
{
skinLabel1.Text = "";
if (skinTextBox1.Text == skinCode1.CodeStr)
{
if (checkBox1.Checked)
{
CPublic.CheckUsers(txtid.Text, txtpwd.Text);
}
else
CPublic.CheckStudent(txtid.Text, txtpwd.Text);
if (CPublic.LoginInfo == null)
{
MessageBox.Show("账号或密码错误", "登陆错误", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
else Close();
}
else skinLabel1.Text = "验证码不正确!";
}
public GraphicsPath GetRoundRectPath(RectangleF rect, float radius)
{
return GetRoundRectPath(rect.X, rect.Y, rect.Width, rect.Height, radius);
}
public GraphicsPath GetRoundRectPath(float X, float Y, float width, float height, float radius)
{
GraphicsPath path = new GraphicsPath();
后面还有 55 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。