ToolbarModel.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. using System.Xml.Serialization;
  2. using System.Collections.Generic;
  3. namespace SmartCoalApplication.Base.SettingModel
  4. {
  5. /// <summary>
  6. /// 自定义界面 - 工具栏
  7. /// </summary>
  8. [XmlRoot("ROOT")]
  9. public class ToolbarModel
  10. {
  11. [XmlArrayAttribute("Flows")]
  12. public List<Flow> Flows { get; set; }
  13. public class Flow
  14. {
  15. [XmlElement("Key")]
  16. public string Key { get; set; }
  17. [XmlElement("Name")]
  18. public string Name { get; set; }
  19. [XmlElement("X")]
  20. public int X { get; set; }
  21. [XmlElement("Y")]
  22. public int Y { get; set; }
  23. [XmlElement("Show")]
  24. public bool Show { get; set; }
  25. [XmlArrayAttribute("Menus")]
  26. public List<Item> Menus { get; set; }
  27. public class Item
  28. {
  29. [XmlElement("Id")]
  30. public int Id { get; set; }
  31. [XmlElement("Name")]
  32. public string Name { get; set; }
  33. [XmlElement("Description")]
  34. public string Description { get; set; }
  35. }
  36. }
  37. }
  38. }