Rectangle1.cs 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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 Rectangle1
  10. {
  11. private double _row1;
  12. private double _column1;
  13. private double _row2;
  14. private double _column2;
  15. [XmlElement(ElementName = "Row1")]
  16. public double Row1
  17. {
  18. get { return this._row1; }
  19. set { this._row1 = value; }
  20. }
  21. [XmlElement(ElementName = "Column1")]
  22. public double Column1
  23. {
  24. get { return this._column1; }
  25. set { this._column1 = value; }
  26. }
  27. [XmlElement(ElementName = "Row2")]
  28. public double Row2
  29. {
  30. get { return this._row2; }
  31. set { this._row2 = value; }
  32. }
  33. [XmlElement(ElementName = "Column2")]
  34. public double Column2
  35. {
  36. get { return this._column2; }
  37. set { this._column2 = 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 Rectangle1()
  47. {
  48. }
  49. public Rectangle1(double row1, double column1, double row2, double column2)
  50. {
  51. this._row1 = row1;
  52. this._column1 = column1;
  53. this._row2 = row2;
  54. this._column2 = column2;
  55. }
  56. }
  57. }