GridModel.cs 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. using System.Xml.Serialization;
  2. namespace SmartCoalApplication.Base.SettingModel
  3. {
  4. /// <summary>
  5. /// 设置 - 网格设置
  6. /// </summary>
  7. [XmlRoot("ROOT")]
  8. public class GridModel
  9. {
  10. [XmlElement("GridName")]
  11. public string gridName { get; set; }
  12. [XmlElement("Grid")]
  13. public Grid grid { get; set; }
  14. [XmlElement("Rectangle")]
  15. public Rectangle rectangle { get; set; }
  16. [XmlElement("Round")]
  17. public Round round { get; set; }
  18. /// <summary>
  19. /// 网格设置
  20. /// </summary>
  21. public class Grid
  22. {
  23. /// <summary>
  24. /// 网格边长
  25. /// </summary>
  26. public int SideLength { get; set; }
  27. /// <summary>
  28. /// 水平网格数量
  29. /// </summary>
  30. public int HorizontalNum { get; set; }
  31. /// <summary>
  32. /// 垂直网格数量
  33. /// </summary>
  34. public int VerticalNum { get; set; }
  35. /// <summary>
  36. /// 线形
  37. /// </summary>
  38. public int DashStyle { get; set; }
  39. /// <summary>
  40. /// 粗细
  41. /// </summary>
  42. public int Thickness { get; set; }
  43. /// <summary>
  44. /// 颜色值
  45. /// </summary>
  46. public int Color { get; set; }
  47. /// <summary>
  48. /// 单位
  49. /// </summary>
  50. public int Unit { get; set; }
  51. /// <summary>
  52. /// 实际单位长度
  53. /// </summary>
  54. public int ActualLength { get; set; }
  55. }
  56. /// <summary>
  57. /// 矩形设置
  58. /// </summary>
  59. public class Rectangle
  60. {
  61. /// <summary>
  62. /// 线形
  63. /// </summary>
  64. public int DashStyle { get; set; }
  65. /// <summary>
  66. /// 粗细
  67. /// </summary>
  68. public int Thickness { get; set; }
  69. /// <summary>
  70. /// 颜色值
  71. /// </summary>
  72. public int Color { get; set; }
  73. }
  74. public class Round
  75. {
  76. /// <summary>
  77. /// 线形
  78. /// </summary>
  79. public int DashStyle { get; set; }
  80. /// <summary>
  81. /// 粗细
  82. /// </summary>
  83. public int Thickness { get; set; }
  84. /// <summary>
  85. /// 颜色值
  86. /// </summary>
  87. public int Color { get; set; }
  88. }
  89. }
  90. }