Line.cs 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Xml.Serialization;
  6. namespace ViewWindow.Config
  7. {
  8. [Serializable]
  9. public class Line
  10. {
  11. private double _rowBegin;
  12. private double _columnBegin;
  13. private double _rowEnd;
  14. private double _columnEnd;
  15. [XmlElement(ElementName = "RowBegin")]
  16. public double RowBegin
  17. {
  18. get { return this._rowBegin; }
  19. set { this._rowBegin = value; }
  20. }
  21. [XmlElement(ElementName = "ColumnBegin")]
  22. public double ColumnBegin
  23. {
  24. get { return this._columnBegin; }
  25. set { this._columnBegin = value; }
  26. }
  27. [XmlElement(ElementName = "RowEnd")]
  28. public double RowEnd
  29. {
  30. get { return this._rowEnd; }
  31. set { this._rowEnd = value; }
  32. }
  33. [XmlElement(ElementName = "ColumnEnd")]
  34. public double ColumnEnd
  35. {
  36. get { return this._columnEnd; }
  37. set { this._columnEnd = value; }
  38. }
  39. private string color = "blue";
  40. [XmlElement(ElementName = "Color")]
  41. public string Color
  42. {
  43. get { return this.color; }
  44. set { this.color = value; }
  45. }
  46. public Line()
  47. {
  48. }
  49. public Line(double rowBegin, double columnBegin, double rowEnd, double columnEnd)
  50. {
  51. this._rowBegin = rowBegin;
  52. this._columnBegin = columnBegin;
  53. this._rowEnd = rowEnd;
  54. this._columnEnd = columnEnd;
  55. }
  56. }
  57. }