添加项目文件。

This commit is contained in:
liming 蔡
2026-08-12 10:50:46 +08:00
parent fd3db6a810
commit ca8fec1e3b
298 changed files with 115094 additions and 0 deletions
+62
View File
@@ -0,0 +1,62 @@
using System;
using System.Drawing;
using System.Windows.Forms;
namespace LargeSquareOne
{
public partial class FrmMsgBoxOutWithAck : Form
{
public FrmMsgBoxOutWithAck(int type, string content, string title)
{
InitializeComponent();
this.TopMost = true;
this.lbl_Content.Text = content;
this.lbl_Title.Text = title;
switch (type)
{
case 1:
this.pic_TitleImage.Image = LargeSquareOne.Properties.Resources.info;
break;
case 2:
this.pic_TitleImage.Image = LargeSquareOne.Properties.Resources.warning;
break;
case 3:
this.pic_TitleImage.Image = LargeSquareOne.Properties.Resources.error;
break;
}
}
#region 无边框拖动
private Point mPoint;
private void Panel_MouseDown(object sender, MouseEventArgs e)
{
mPoint = new Point(e.X, e.Y);
}
private void Panel_MouseMove(object sender, MouseEventArgs e)
{
if (e.Button == MouseButtons.Left)
{
this.Location = new Point(this.Location.X + e.X - mPoint.X, this.Location.Y + e.Y - mPoint.Y);
}
}
#endregion
private void btn_Sure_Click(object sender, EventArgs e)
{
this.Close();
}
private void btn_Close_Click(object sender, EventArgs e)
{
this.Close();
}
}
}