LabelListModel.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. using PaintDotNet.Base.SettingModel;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. using System.Xml.Serialization;
  8. namespace PaintDotNet.Base.XmlSaveModel
  9. {
  10. /// <summary>
  11. ///
  12. /// </summary>
  13. [XmlRoot("ROOT")]
  14. public class LabelListModel
  15. {
  16. public LabelListModel() {
  17. labelDataList = new List<LabelData>();
  18. }
  19. /// <summary>
  20. /// 数据集合
  21. /// </summary>
  22. [XmlElement("labelDataList")]
  23. public List<LabelData> labelDataList { get; set; }
  24. }
  25. public class LabelData
  26. {
  27. /// <summary>
  28. /// 名称
  29. /// </summary>
  30. [XmlElement("name")]
  31. public string name { get; set; }
  32. /// <summary>
  33. /// 名称
  34. /// </summary>
  35. [XmlElement("labelDataDetailList")]
  36. public List<LabelDataDetails> labelDataDetailList { get; set; }
  37. }
  38. public class LabelDataDetails
  39. {
  40. /// <summary>
  41. /// 对象
  42. /// </summary>
  43. [XmlElement("drawObject")]
  44. public LabelMeasureDataModel drawObject { get; set; }
  45. /// <summary>
  46. /// 是否锁定
  47. /// </summary>
  48. [XmlElement("isLocked")]
  49. public bool isLocked { get; set; }
  50. }
  51. }