39 lines
998 B
C#
39 lines
998 B
C#
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;
|
|
|
|
namespace Lskj.PubBill.ComfirmDialog
|
|
{
|
|
public partial class ComfirmDialog : Form
|
|
{
|
|
public string ComfirmMsg = string.Empty;
|
|
public ComfirmDialog(string hint)
|
|
{
|
|
InitializeComponent();
|
|
memInput.Text = "";
|
|
ComfirmMsg = "";
|
|
labelHint.Text = hint;
|
|
}
|
|
|
|
private void simpleButton1_Click(object sender, EventArgs e)
|
|
{
|
|
ComfirmMsg = memInput.Text;
|
|
if (ComfirmMsg.Trim() == "")
|
|
ComfirmMsg = "未填写任何内容";
|
|
this.DialogResult = DialogResult.OK;
|
|
this.Close();
|
|
}
|
|
|
|
private void simpleButton2_Click(object sender, EventArgs e)
|
|
{
|
|
this.DialogResult = DialogResult.Cancel;
|
|
this.Close();
|
|
}
|
|
}
|
|
}
|