Ejemplo n.º 1
0
        private void pictureBox2_Click(object sender, EventArgs e)
        {
            Animator1.Hide(this.PnlFrm);
            Animator1.WaitAllAnimations();
            UctDownload uctDownload = new UctDownload();

            uctDownload.Show();
            this.PnlFrm.Controls.Clear();
            this.PnlFrm.Controls.Add(uctDownload);
            Animator2.Show(this.PnlFrm);
        }
Ejemplo n.º 2
0
        private void pictureBox1_Click(object sender, EventArgs e)
        {
            Animator1.Hide(this.PnlFrm);
            Animator1.WaitAllAnimations();
            UctGame uctGame = new UctGame();

            uctGame.SetOwner <FrmMain>(this);
            uctGame.Show();
            this.PnlFrm.Controls.Clear();
            this.PnlFrm.Controls.Add(uctGame);
            Animator2.Show(this.PnlFrm);
        }
Ejemplo n.º 3
0
        public static Animator2 AnimateProperty <TEasing>(
            this Control @this,
            String propertyName,
            Int32 targetValue,
            Int32 duration = Animator2.DefaultDuration
            ) where TEasing : IAnimationEasing
        {
            var property = typeof(Control).GetProperty(propertyName);
            var animator = new Animator2(@this, property, targetValue, duration);

            animator.Enqueue <TEasing>();

            return(animator);
        }
Ejemplo n.º 4
0
 public static Animator2 GetCurrentAnimator(this Control @this, String propertyName)
 {
     return(Animator2.GetCurrentAnimator(@this, propertyName));
 }
Ejemplo n.º 5
0
 public static Boolean IsAnimating(this Control @this)
 {
     return(Animator2.IsAnimating(@this));
 }
Ejemplo n.º 6
0
 public static void StopAnimation(this Control @this, params String[] properties)
 {
     Animator2.StopAnimation(@this, properties);
 }
Ejemplo n.º 7
0
 public static void StopAnimation(this Control @this)
 {
     Animator2.StopAnimation(@this);
 }