public static Animation AsyncLogAnimation(int beginValue, int endValue, int duration, AnimationFunc scene, CompletedFunc completed, object data) { Animation a = new Animation(); a.Mode = AnimationMode.Log; a.Acceleration = 0.05f; a.BeginValue = beginValue; a.EndValue = endValue; a.Duration = duration; a.Data = data; if (completed != null) a.Completed += new EventHandler(completed); a.Scene += new EventHandler<AnimationEventArgs>(scene); a.Start(); return a; }
public static Animation AsyncLogAnimation(int beginValue, int endValue, int duration, AnimationFunc scene, CompletedFunc completed, object data) { Animation a = new Animation(); a.Mode = AnimationMode.Log; a.Acceleration = 0.05f; a.BeginValue = beginValue; a.EndValue = endValue; a.Duration = duration; a.Data = data; if (completed != null) { a.Completed += new EventHandler(completed); } a.Scene += new EventHandler <AnimationEventArgs>(scene); a.Start(); return(a); }