48 lines
1.1 KiB
C#
48 lines
1.1 KiB
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;
|
|
using DevExpress.XtraEditors;
|
|
|
|
namespace Lskj.Common
|
|
{
|
|
public partial class FrmPrompt : Form
|
|
{
|
|
public string ProjectName;
|
|
|
|
public FrmPrompt()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void simpleButton1_Click(object sender, EventArgs e)
|
|
{
|
|
this.ProjectName = this.textBox1.Text.Trim();
|
|
if (!string.IsNullOrWhiteSpace(this.ProjectName))
|
|
{
|
|
this.DialogResult = DialogResult.OK;
|
|
this.Close();
|
|
}
|
|
else
|
|
{
|
|
XtraMessageBox.Show("请输入方案名称.");
|
|
}
|
|
}
|
|
|
|
private void simpleButton2_Click(object sender, EventArgs e)
|
|
{
|
|
this.Close();
|
|
this.DialogResult = DialogResult.Cancel;
|
|
}
|
|
|
|
private void FrmPrompt_Load(object sender, EventArgs e)
|
|
{
|
|
this.textBox1.Text = ProjectName;
|
|
}
|
|
}
|
|
}
|