DataInfos.cs 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. using GalaSoft.MvvmLight;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. using System.Windows.Media.Imaging;
  8. namespace GeekDesk.ViewModel
  9. {
  10. public class DataInfos : ViewModelBase
  11. {
  12. private string path; //路径
  13. private string name; //文件名
  14. private int count = 0; //打开次数
  15. private BitmapImage bitmapImage; //位图
  16. public int Count
  17. {
  18. get
  19. {
  20. return count;
  21. }
  22. set
  23. {
  24. count = value;
  25. RaisePropertyChanged();
  26. }
  27. }
  28. public string Name
  29. {
  30. get
  31. {
  32. return name;
  33. }
  34. set
  35. {
  36. name = value;
  37. RaisePropertyChanged();
  38. }
  39. }
  40. public string Path
  41. {
  42. get
  43. {
  44. return path;
  45. }
  46. set
  47. {
  48. path = value;
  49. RaisePropertyChanged();
  50. }
  51. }
  52. public BitmapImage BitmapImage
  53. {
  54. get
  55. {
  56. return bitmapImage;
  57. }
  58. set
  59. {
  60. bitmapImage = value;
  61. RaisePropertyChanged();
  62. }
  63. }
  64. }
  65. }