登陆管理/WFLogin.cs
(开头部分) 5KB这里只显示每个文件的开头 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 CCWin;
using System.Xml;
using Tools;
using System.Threading;
using System.Runtime.InteropServices;
namespace 宿舍管理系统
{
public partial class WFLogin : Skin_Mac
{
[DllImport("user32")]
private static extern bool AnimateWindow(IntPtr hwnd, int dwTime, int dwFlags);
private const int AW_HIDE = 0x10000;//隐藏窗口
private const int AW_ACTIVE = 0x20000;//激活窗口,在使用了AW_HIDE标志后不要使用这个标志
private const int AW_BLEND = 0x80000;//使用淡入淡出效果
//旧的多线程代码
public static void popStart()
{
Application.Run(new WFPop());
}
public static ThreadStart pop = new ThreadStart(popStart);
Thread popThread = new Thread(pop);
private List<User> list = new List<User>();
public WFLogin()
{
InitializeComponent();
}
public void ReLogin()
{
list.Clear();
XmlDocument doc = new XmlDocument();
doc.Load(@"用户登录表.xml");
XmlElement Users = doc.DocumentElement;
XmlNodeList xnl = Users.ChildNodes;
foreach (XmlNode item in xnl)
{
if (item.Name == "student")
{
list.Add(new User(Convert.ToInt32(item["no"].InnerText), item["psw"].InnerText, "student"));
}
else if (item.Name == "manager")
{
list.Add(new User(Convert.ToInt32(item["no"].InnerText), item["psw"].InnerText, "manager"));
}
}
}
private void WFLogin_Load(object sender, EventArgs e)
{
后面还有 84 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
