Circle.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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 Circle
  10. {
  11. private double _row;
  12. private double _column;
  13. private double _radius;
  14. [XmlElement(ElementName = "Row")]
  15. public double Row
  16. {
  17. get { return this._row; }
  18. set { this._row = value; }
  19. }
  20. [XmlElement(ElementName = "Column")]
  21. public double Column
  22. {
  23. get { return this._column; }
  24. set { this._column = value; }
  25. }
  26. [XmlElement(ElementName = "Radius")]
  27. public double Radius
  28. {
  29. get { return this._radius; }
  30. set { this._radius = value; }
  31. }
  32. private string color = "blue";
  33. [XmlElement(ElementName = "Color")]
  34. public string Color
  35. {
  36. get { return this.color; }
  37. set { this.color = value; }
  38. }
  39. public Circle()
  40. {
  41. }
  42. public Circle(double row, double column, double radius)
  43. {
  44. this._row = row;
  45. this._column = column;
  46. this._radius = radius;
  47. }
  48. }
  49. }