init lserp cs 5.0
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
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;
|
||||
using CommonLib.data;
|
||||
|
||||
namespace Lskj.Common.ComfirmDialog
|
||||
{
|
||||
public partial class ComfirmDialog : FormBase
|
||||
{
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user