| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- namespace IndexFormula.Finance
- {
- using System;
- using System.ComponentModel;
- using System.Xml.Serialization;
- [Serializable, TypeConverter(typeof(ArrowCapConverter)), RefreshProperties(RefreshProperties.Repaint)]
- public class ArrowCap
- {
- private bool filled;
- private int height;
- private int width;
- public ArrowCap()
- {
- this.width = 10;
- this.height = 10;
- }
- public ArrowCap(int Width, int Height, bool Filled)
- {
- this.width = 10;
- this.height = 10;
- this.width = Width;
- this.height = Height;
- this.filled = Filled;
- }
- public override string ToString()
- {
- return string.Concat(new object[] { "", this.width, ",", this.height, ",", this.filled });
- }
- [DefaultValue(false), XmlAttribute]
- public bool Filled
- {
- get
- {
- return this.filled;
- }
- set
- {
- this.filled = value;
- }
- }
- [XmlAttribute, DefaultValue(10)]
- public int Height
- {
- get
- {
- return this.height;
- }
- set
- {
- this.height = value;
- if (this.width == 0)
- {
- this.width = value;
- }
- }
- }
- [DefaultValue(10), XmlAttribute]
- public int Width
- {
- get
- {
- return this.width;
- }
- set
- {
- this.width = value;
- if (this.height == 0)
- {
- this.height = value;
- }
- }
- }
- }
- }
|