WinPSI/FrmLogin.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using PSI.BLL;
using PSI.Common.Encrypt;
using PSI.Models.VModels;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using WinPSI.FModels;
namespace WinPSI
{
public partial class FrmLogin : Form
{
public FrmLogin()
{
InitializeComponent();
}
#region
//无边框时,拖动改变窗体位置
private Point fPoint;
private void FrmLogin_MouseDown(object sender, MouseEventArgs e)
{
fPoint = new Point(e.X, e.Y);
}
private void FrmLogin_MouseMove(object sender, MouseEventArgs e)
{
if (e.Button == MouseButtons.Left)
{
this.Location = new Point(this.Location.X + e.X-fPoint.X, this.Location.Y + e.Y - fPoint.Y);
}
}
#endregion
/// <summary>
/// 登录系统
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void btnLogin_Click(object sender, EventArgs e)
{
//接收信息
string userName = txtUName.Text.Trim();
string userPwd = txtUPwd.Text.Trim();
//判断是否为空
if(string.IsNullOrEmpty(userName))
{
MsgBoxHelper.MsgErrorShow("账号不能为空!");
txtUName.Focus();
return;
}
if (string.IsNullOrEmpty(userPwd))
后面还有 63 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。