| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- using System;
- using System.Windows.Forms;
- using CoreFS.CA06;
- namespace Core.StlMes.Client.LgResMgt.Mcms
- {
- public partial class ProjectName : FrmBase
- {
-
- public ProjectName(string text)
- {
- InitializeComponent();
- this.Text = text;
- lblshow.Text = text;
- }
- public string ProjectNameStr
- {
- get { return uteProjectName.Text; }
- set { uteProjectName.Text = value; }
- }
- private void ubtOK_Click(object sender, EventArgs e)
- {
- if (string.IsNullOrWhiteSpace(uteProjectName.Text))
- {
- MessageBox.Show(@"请输入" + this.Text);
- return;
- }
- this.DialogResult = DialogResult.OK;
- }
- private void uteProjectName_KeyPress(object sender, KeyPressEventArgs e)
- {
- if (e.KeyChar == 13)
- {
- ubtOK_Click(null, null);
- }
- }
- }
- }
|