| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- using System;
- using System.Windows.Forms;
- using System.Windows.Input;
- using CoreFS.CA06;
- namespace Core.StlMes.Client.Mcp.Mch.Mcms
- {
- public partial class ProjectName : FrmBase
- {
- public ProjectName()
- {
- InitializeComponent();
- }
- 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(@"请输入方案名");
- return;
- }
- this.DialogResult = DialogResult.OK;
- }
- private void uteProjectName_KeyPress(object sender, KeyPressEventArgs e)
- {
- if (e.KeyChar == 13)
- {
- ubtOK_Click(null, null);
- }
- }
- }
- }
|