初始化提交
This commit is contained in:
@@ -0,0 +1,71 @@
|
||||
using Language;
|
||||
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 LargeSquareOne
|
||||
{
|
||||
public partial class FrmMsgBoxWithAck : MultiLanguageForm
|
||||
{
|
||||
public FrmMsgBoxWithAck(string content, string title)
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
this.TopMost = true;
|
||||
|
||||
this.content = content;
|
||||
this.title = title;
|
||||
|
||||
this.lbl_Content.Text = content;
|
||||
this.lbl_Title.Text = title;
|
||||
|
||||
}
|
||||
|
||||
private void btn_Sure_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.DialogResult = DialogResult.OK;
|
||||
}
|
||||
|
||||
private void btn_Cancel_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.DialogResult = DialogResult.Cancel;
|
||||
}
|
||||
|
||||
private void btn_Close_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.DialogResult = DialogResult.Cancel;
|
||||
}
|
||||
|
||||
#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
|
||||
|
||||
string content;
|
||||
string title;
|
||||
|
||||
private void FrmMsgBoxWithAck_Shown(object sender, EventArgs e)
|
||||
{
|
||||
this.lbl_Content.Text = this.content;
|
||||
this.lbl_Title.Text = this.title;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user