MostRecentFile.cs 760 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Drawing;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace SmartCoalApplication
  8. {
  9. /// <summary>
  10. /// 封装文件名和缩略图
  11. /// </summary>
  12. internal class MostRecentFile
  13. {
  14. private string fileName;
  15. private Image thumb;
  16. public string FileName
  17. {
  18. get
  19. {
  20. return fileName;
  21. }
  22. }
  23. public Image Thumb
  24. {
  25. get
  26. {
  27. return thumb;
  28. }
  29. }
  30. public MostRecentFile(string fileName, Image thumb)
  31. {
  32. this.fileName = fileName;
  33. this.thumb = thumb;
  34. }
  35. }
  36. }