NoticeBox.cs
(开头部分) 45KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.IO;
namespace NoticeBox
{
public class NoticeBox : Form
{
//-----------------------------------------------------------
private Form Form_Shadow = new Form();
private Point offset;
private Color _styleColor = Color.FromArgb(243, 119, 53);
private DialogResult _result = DialogResult.None;
//-----------------------------------------------------------
private TableLayoutPanel tlpBody;
private Panel Control_Title;
private Label Label_Title;
private Panel Panel_Main;
private System.ComponentModel.IContainer components;
private Label Label_Message;
private Panel Panel_Button;
private Button Button_1;
private Button Button_2;
private Button Button_3;
private Button Button_Close;
private TextBox TextBox_Input;
private Button Button_GetPath;
private Panel Border_Top1;
private Panel Border_Top2;
private Panel Border_Left1;
private Timer Timer_WindowFaded;
private Label Label_HotKey;
private Panel Border_Left2;
private NoticeBox()
{
InitializeComponent();
// 创建新窗体用于显示阴影
// TODU: 存在BUG,结束后主窗体不能获取焦点
int x = (SystemInformation.WorkingArea.Width - this.Size.Width) / 2;
int y = (SystemInformation.WorkingArea.Height - this.Size.Height) / 2;
Form_Shadow.Size = new Size(Width + 16, Height + 8);
Form_Shadow.Location = new Point(x - 8, y);
Form_Shadow.StartPosition = FormStartPosition.Manual;
Form_Shadow.FormBorderStyle = FormBorderStyle.FixedToolWindow;
Form_Shadow.BackColor = BackColor;
Form_Shadow.Opacity = 0f;
Form_Shadow.ShowInTaskbar = false;
Form_Shadow.Show();
}
protected override void Dispose(bool disposing)
{
if (disposing)
{
后面还有 931 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。