예제 #1
0
        public void SetGradientPaintOnDefault()
        {
            var gradient = new Gradient <Form>(this,
                                               ColorAOnDefault,
                                               ColorBOnDefault,
                                               ColorCOnDefault,
                                               ColorToneOnDefault,
                                               GradientAngleOnDefault);

            TransitionHelper.GradientPaint(gradient);
        }
        public void SetGradientPaintOnClick()
        {
            var gradient = new Gradient <FlatGradientButton>(this,
                                                             ColorAOnClick,
                                                             ColorBOnClick,
                                                             ColorCOnClick,
                                                             ColorToneOnClick,
                                                             GradientAngleOnClick);

            TransitionHelper.GradientPaint(gradient);
        }
예제 #3
0
 public void SetGradientPaintOnDefault()
 {
     TransitionHelper.GradientPaint(new Gradient <FlatPanel>(this, ColorAOnDefault, ColorBOnDefault,
                                                             ColorCOnDefault, ColorToneOnDefault, GradientAngleOnDefault));
 }