Exemplo n.º 1
0
 internal void updatePosition()
 {
     sharedEventArgs._setValues(button);
     button.setPosition((int)(timelineData.StartTime * pixelsPerSecond), button.Top);
     if (CoordChanged != null)
     {
         CoordChanged.Invoke(this, sharedEventArgs);
     }
 }
Exemplo n.º 2
0
        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);
            }
        }