protected LeafElement() { Control.SizeChanged += (sender, args) => { SizeChanged?.Invoke(); WidthChanged?.Invoke(); HeightChanged?.Invoke(); BottomChanged?.Invoke(); RightChanged?.Invoke(); }; }
private void findLowestButton() { int lowest = yPosition + ROW_HEIGHT; foreach (TimelineViewButton button in buttons) { if (button.Bottom > lowest) { lowest = button.Bottom; } } if (lowest != bottom) { bottom = lowest + STACKED_BUTTON_SPACE; if (BottomChanged != null) { BottomChanged.Invoke(this, EventArgs.Empty); } } }