HealthHelper/FrmRest.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.Threading.Tasks;
using System.Windows.Forms;
namespace HealthHelper
{
public partial class FrmRest : Form
{
public FrmRest()
{
InitializeComponent();
p_top.GetType().GetProperty("DoubleBuffered", System.Reflection.BindingFlags.Instance |
System.Reflection.BindingFlags.NonPublic).SetValue(p_top, true, null);
}
List<Form> otherScreenFrmList = new List<Form>();
private void FrmRest_Load(object sender, EventArgs e)
{
Screen[] screenList = Screen.AllScreens;
foreach (Screen screen in screenList)
{
if (screen.Primary)
{
FullScreen(this, screen);
}
else
{
// 副屏幕
Form frm = new FrmScreen();
frm.Show();
otherScreenFrmList.Add(frm);
frm.FormClosing += Frm_FormClosing;
FullScreen(frm, screen);
}
p_CenterMsg.Location = new Point((this.Width - p_CenterMsg.Width) / 2, (this.Height - p_CenterMsg.Height) / 2);
}
}
bool closeAll = false;
private void Frm_FormClosing(object sender, FormClosingEventArgs e)
{
Console.WriteLine(sender);
// 主屏关闭事件
if (sender == this)
{
if (!closeAll)
{
closeAll = true;
后面还有 65 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。