ToastNotifications.FormAnimator.FormAnimator C# (CSharp) Method

FormAnimator() public method

Creates a new FormAnimator object for the specified form
No animation will be used unless the Method and/or Direction properties are set independently. The Duration is set to quarter of a second by default.
public FormAnimator ( Form form ) : System
form System.Windows.Forms.Form /// The form to be animated ///
return System
        public FormAnimator(Form form)
        {
            _form = form;

            _form.Load += Form_Load;
            _form.VisibleChanged += Form_VisibleChanged;
            _form.Closing += Form_Closing;

            _duration = DefaultDuration;
        }

Same methods

FormAnimator::FormAnimator ( Form form, AnimationMethod method, AnimationDirection direction, int duration ) : System
FormAnimator::FormAnimator ( Form form, AnimationMethod method, int duration ) : System