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); }
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); }
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); }
public static Animator2 GetCurrentAnimator(this Control @this, String propertyName) { return(Animator2.GetCurrentAnimator(@this, propertyName)); }
public static Boolean IsAnimating(this Control @this) { return(Animator2.IsAnimating(@this)); }
public static void StopAnimation(this Control @this, params String[] properties) { Animator2.StopAnimation(@this, properties); }
public static void StopAnimation(this Control @this) { Animator2.StopAnimation(@this); }