Пример #1
0
 public AnimationParams(AnimationMethod method,
                        AnimationDirection direction,
                        int duration)
     : this(method, direction)
 {
     Duration = duration;
 }
Пример #2
0
 public AnimationParams(AnimationMethod method,
                        AnimationDirection direction)
 {
     Method    = method;
     Direction = direction;
     Duration  = DEFAULT_DURATION;
 }
Пример #3
0
 /// <summary>
 /// Creates a new <b>FormAnimator</b> object for the specified form using the specified method in the specified direction over the specified duration.
 /// </summary>
 /// <param name="form">
 /// The form to be animated.
 /// </param>
 /// <param name="method">
 /// The animation method used to show and hide the form.
 /// </param>
 /// <param name="direction">
 /// The direction in which to animate the form.
 /// </param>
 /// <param name="duration">
 /// The number of milliseconds over which the animation is played.
 /// </param>
 /// <remarks>
 /// The <i>direction</i> argument will have no effect if the <b>Centre</b> or <b>Blend</b> method is
 /// specified.
 /// </remarks>
 public FormAnimator(Form form,
                     AnimationMethod method,
                     AnimationDirection direction,
                     int duration)
     : this(form, method, duration)
 {
     this._direction = direction;
 }
Пример #4
0
 /// <summary>
 /// Creates a new <b>FormAnimator</b> object for the specified form using the specified method over the specified duration.
 /// </summary>
 /// <param name="form">
 /// The form to be animated.
 /// </param>
 /// <param name="method">
 /// The animation method used to show and hide the form.
 /// </param>
 /// <param name="duration">
 /// The number of milliseconds over which the animation is played.
 /// </param>
 /// <remarks>
 /// No animation will be used for the <b>Roll</b> or <b>Slide</b> methods unless the <b>Direction</b> property is set independently.
 /// </remarks>
 public FormAnimator(Form form,
                     AnimationMethod method,
                     int duration)
     : this(form)
 {
     this._method   = method;
     this._duration = duration;
 }
Пример #5
0
 private void DistributeAnimationMethodsByType()
 {
     Sprout  = SproutMethods [(int)_d.PlantFormType];
     Grow    = GrowMethods   [(int)_d.PlantFormType];
     Bloom   = BloomMethods  [(int)_d.PlantFormType];
     Fall    = FallMethods   [(int)_d.PlantFormType];
     Rebloom = RebloomMethods[(int)_d.PlantFormType];
 }
Пример #6
0
 //
 /// ----------------------------------------------------------------------------- 
 /// <summary> 
 /// Creates a new FormAnimator object for the specified form using the specified 
 /// method in the specified direction over the specified duration. 
 /// </summary> 
 /// <param name="form"> 
 /// The form to be animated. 
 /// </param> 
 /// <param name="method"> 
 /// The animation method used to show and hide the form. 
 /// </param> 
 /// <param name="direction"> 
 /// The direction in which to animate the form. 
 /// </param> 
 /// <param name="duration"> 
 /// The number of milliseconds over which the animation is played. 
 /// </param> 
 /// <remarks> 
 /// The direction argument will have no effect if the Centre or Blend method is 
 /// specified. 
 /// </remarks> 
 /// <history> 
 /// [John] 5/09/2005 Created 
 /// </history> 
 /// ----------------------------------------------------------------------------- 
 public FormAnimator(Form form, AnimationMethod method, AnimationDirection direction, int duration)
     : this(form, method, duration)
 {
     this.m_Direction = direction;
 }
Пример #7
0
 /// ----------------------------------------------------------------------------- 
 /// <summary> 
 /// Creates a new FormAnimator object for the specified form using the specified 
 /// method over the specified duration. 
 /// </summary> 
 /// <param name="form"> 
 /// The form to be animated. 
 /// </param> 
 /// <param name="method"> 
 /// The animation method used to show and hide the form. 
 /// </param> 
 /// <param name="duration"> 
 /// The number of milliseconds over which the animation is played. 
 /// </param> 
 /// <remarks> 
 /// No animation will be used for the Roll or Slide methods unless the Direction 
 /// property is set independently. 
 /// </remarks> 
 /// <history> 
 /// [John] 5/09/2005 Created 
 /// </history> 
 /// ----------------------------------------------------------------------------- 
 public FormAnimator(Form form, AnimationMethod method, int duration)
     : this(form)
 {
     this.m_Method = method;
     this.m_Duration = duration;
 }
 /// <summary>
 /// Creates a new <b>FormAnimator</b> object for the specified form using the specified method over the specified duration
 /// </summary>
 /// <param name="form">
 /// The form to be animated
 /// </param>
 /// <param name="method">
 /// The animation method used to show and hide the form
 /// </param>
 /// <param name="duration">
 /// The number of milliseconds over which the animation is played
 /// </param>
 /// <remarks>
 /// No animation will be used for the <b>Roll</b> or <b>Slide</b> methods unless the <b>Direction</b> property is set independently
 /// </remarks>
 public FormAnimator(Form form, AnimationMethod method, int duration)
     : this(form)
 {
     _method = method;
     _duration = duration;
 }
Пример #9
0
 /// <summary>
 /// Creates a new <b>FormAnimator</b> object for the specified form using the specified method over the specified duration.
 /// </summary>
 /// <param name="form">
 /// The form to be animated.
 /// </param>
 /// <param name="method">
 /// The animation method used to show and hide the form.
 /// </param>
 /// <param name="duration">
 /// The number of milliseconds over which the animation is played.
 /// </param>
 /// <remarks>
 /// No animation will be used for the <b>Roll</b> or <b>Slide</b> methods unless the <b>Direction</b> property is set independently.
 /// </remarks>
 public Win32Animator(Form form,
                     AnimationMethod method,
                     int duration)
     : this(form)
 {
     this._method = method;
     this._duration = duration;
 }
Пример #10
0
 public FormAnimator(System.Windows.Forms.Form form, AnimationMethod method, AnimationDirection direction, int duration) : this(form, method, duration)
 {
     this.animationDirection_0 = direction;
 }
Пример #11
0
 public FormAnimator(System.Windows.Forms.Form form, AnimationMethod method, int duration) : this(form)
 {
     this.animationMethod_0 = method;
     this.int_2             = duration;
 }
Пример #12
0
 public AnimationParams(AnimationMethod method,
     AnimationDirection direction,
     int duration)
     : this(method, direction)
 {
     Duration = duration;
 }
Пример #13
0
 public AnimationParams(AnimationMethod method,
     AnimationDirection direction)
 {
     Method = method;
     Direction = direction;
     Duration = DEFAULT_DURATION;
 }