// Constructors public UiInterval(IUiElement element, UiChart chart) : base(element) { this.Chart = chart; this.start = new VolatileState <TimeSpan>(this.GetStart); this.span = new VolatileState <TimeSpan>(this.GetSpan); }
// Constructors public UiChart(IUiElement element) : base(element) { this.intervals = new VolatileList <UiInterval>( () => base.FindAll(By.ClassName(UiInterval.ClassName)), (item) => new UiInterval(item, this)); this.originLabel = new VolatileState <UiElement>( () => new UiElement(base.Find(By.ClassName(typeof(TimeAxis).Name)).Find("MajorTick#0"))); }
// Constructors public UiElement(IUiElement element) { this.External = (element is UiElement) ? ((UiElement)element).External : element; this.height = new VolatileState <int>(() => this.External.Height); this.text = new VolatileState <string>(() => this.External.Text); this.width = new VolatileState <int>(() => this.External.Width); this.x = new VolatileState <int>(() => this.External.X); this.y = new VolatileState <int>(() => this.External.Y); }