コード例 #1
0
 protected LeafElement()
 {
     Control.SizeChanged += (sender, args) =>
     {
         SizeChanged?.Invoke();
         WidthChanged?.Invoke();
         HeightChanged?.Invoke();
         BottomChanged?.Invoke();
         RightChanged?.Invoke();
     };
 }
コード例 #2
0
        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);
                }
            }
        }