UpdateCar.cs 903 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. using System;
  2. using System.Windows.Forms;
  3. using CoreFS.CA06;
  4. namespace Core.StlMes.Client.LgResMgt.Mcms
  5. {
  6. public partial class UpdateCar : FrmBase
  7. {
  8. public UpdateCar()
  9. {
  10. InitializeComponent();
  11. }
  12. public string CarNo
  13. {
  14. get { return uteProjectName.Text; }
  15. set { uteProjectName.Text = value; }
  16. }
  17. private void ubtOK_Click(object sender, EventArgs e)
  18. {
  19. if (string.IsNullOrWhiteSpace(uteProjectName.Text))
  20. {
  21. MessageBox.Show(@"请输入车牌");
  22. return;
  23. }
  24. this.DialogResult = DialogResult.OK;
  25. }
  26. private void uteProjectName_KeyPress(object sender, KeyPressEventArgs e)
  27. {
  28. if (e.KeyChar == 13)
  29. {
  30. ubtOK_Click(null, null);
  31. }
  32. }
  33. }
  34. }