internal void updatePosition() { sharedEventArgs._setValues(button); button.setPosition((int)(timelineData.StartTime * pixelsPerSecond), button.Top); if (CoordChanged != null) { CoordChanged.Invoke(this, sharedEventArgs); } }
internal void updateDurationWidth() { sharedEventArgs._setValues(button); int buttonWidth = (int)(timelineData.Duration * pixelsPerSecond); if (buttonWidth < MinButtonSize) { buttonWidth = MinButtonSize; } button.setSize(buttonWidth, button.Height); if (CoordChanged != null) { CoordChanged.Invoke(this, sharedEventArgs); } }