Example #1
0
 /// <summary>
 /// Constructor for the class.
 /// </summary>
 public AnimatedButton()
 {
     // Instantiate all of the animation messages.
     AnimProperties = new AnimProperties();
     AnimProperties.ForeColorMessage = new AnimMessage(this);
     AnimProperties.BackColorMessage = new AnimMessage(this);
 }
Example #2
0
        /// <summary>
        /// Constructor for the class.
        /// </summary>
        public AnimatedButtonPressIndicator()
        {
            // Instantiate all of the animation messages.
            AnimProperties = new AnimProperties();
            AnimProperties.ForeColorMessage = new AnimMessage(this);
            AnimProperties.BackColorMessage = new AnimMessage(this);

            // Setup click event.
            this.MouseClick += OnMouseClick;
        }
Example #3
0
        /// <summary>
        /// Constructor for the class.
        /// </summary>
        public AnimatedDataGridView()
        {
            // 2x Buffering
            DoubleBuffered = true;

            // Instantiate all of the animation messages.
            AnimProperties      = new AnimProperties();
            AnimationMessagesBg = new List <AnimMessage>();
            AnimationMessagesFg = new List <AnimMessage>();

            // Set delegate for swapping items with CTRL + Mouse Wheel
            OnRowSwapped += AnimateSwap;

            // Set initial index for last animation (default selection)
            LastIndex = 0;
        }