Rectangle2.cs 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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 Rectangle2
  10. {
  11. private double _row;
  12. private double _column;
  13. private double _phi;
  14. private double _lenth1;
  15. private double _lenth2;
  16. [XmlElement(ElementName = "Row")]
  17. public double Row
  18. {
  19. get { return this._row; }
  20. set { this._row = value; }
  21. }
  22. [XmlElement(ElementName = "Column")]
  23. public double Column
  24. {
  25. get { return this._column; }
  26. set { this._column = value; }
  27. }
  28. [XmlElement(ElementName = "Phi")]
  29. public double Phi
  30. {
  31. get { return this._phi; }
  32. set { this._phi = value; }
  33. }
  34. [XmlElement(ElementName = "Lenth1")]
  35. public double Lenth1
  36. {
  37. get { return this._lenth1; }
  38. set { this._lenth1 = value; }
  39. }
  40. [XmlElement(ElementName = "Lenth2")]
  41. public double Lenth2
  42. {
  43. get { return this._lenth2; }
  44. set { this._lenth2 = value; }
  45. }
  46. private string color = "blue";
  47. [XmlElement(ElementName = "Color")]
  48. public string Color
  49. {
  50. get { return this.color; }
  51. set { this.color = value; }
  52. }
  53. public Rectangle2()
  54. {
  55. }
  56. public Rectangle2(double row, double column, double phi, double lenth1, double lenth2)
  57. {
  58. this._row = row;
  59. this._column = column;
  60. this._phi = phi;
  61. this._lenth1 = lenth1;
  62. this._lenth2 = lenth2;
  63. }
  64. }
  65. }