frmThumbtackText.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using LYFZ.Model;
  6. namespace LYFZ.Software.MainBusiness.NewCameraControlBook
  7. {
  8. public class frmThumbtackText : LYFZ.Software.NewCameraControlBook.frmThumbtackText
  9. {
  10. public frmThumbtackText()
  11. {
  12. this.Load += FrmThumbtackText_Load;
  13. }
  14. private void FrmThumbtackText_Load(object sender, EventArgs e)
  15. {
  16. switch (tType)
  17. {
  18. case ThumbtackType.公休图钉:
  19. this.Text = String.Format("公休说明(最多可输入500个字,公休说明为空时,将自动取消公休日)");
  20. break;
  21. case ThumbtackType.普通图钉:
  22. case ThumbtackType.摄控本日历图钉:
  23. this.Text = String.Format("编辑图钉(最多可输入500个字)");
  24. break;
  25. }
  26. }
  27. Model.ThumbtackType tType = Model.ThumbtackType.摄控本日历图钉;
  28. /// <summary>
  29. /// 图钉类型
  30. /// </summary>
  31. public ThumbtackType TType { get => tType; set => tType = value; }
  32. }
  33. }