| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- using System;
- using System.Windows.Forms;
- using CoreFS.CA06;
- namespace Core.StlMes.Client.LgResMgt.Mcms
- {
- public partial class UpdateCar : FrmBase
- {
- public UpdateCar()
- {
- InitializeComponent();
- }
- public string CarNo
- {
- 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);
- }
- }
- }
- }
|