private void Modificar(object sender, EventArgs args)
 {
     Bar1.Progress = 1;
     Bar2.ProgressTo(1, 10000, Easing.Linear);
     Bar3.ProgressTo(1, 10000, Easing.SpringIn);
     Bar4.ProgressTo(1, 10000, Easing.SinIn);
     Bar5.ProgressTo(1, 10000, Easing.BounceOut);
     Bar6.ProgressTo(1, 10000, Easing.BounceIn);
     Bar7.ProgressTo(1, 10000, Easing.CubicIn);
 }
Exemplo n.º 2
0
 public void ModifyProgress(object sender, EventArgs args)
 {
     Bar1.Progress = 1;
     Bar2.ProgressTo(1, 5000, Easing.Linear); //Alguns tipos de animação na classe Easing
     Bar3.ProgressTo(1, 5000, Easing.SpringIn);
     Bar4.ProgressTo(1, 5000, Easing.SpringOut);
     Bar5.ProgressTo(1, 5000, Easing.BounceIn);
     Bar6.ProgressTo(1, 5000, Easing.BounceOut);
     Bar7.ProgressTo(1, 5000, Easing.CubicIn);
     Bar8.ProgressTo(1, 5000, Easing.CubicOut);
     Bar9.ProgressTo(1, 5000, Easing.SinIn);
     Bar10.ProgressTo(1, 5000, Easing.SinOut);
 }
 private void Modificar(object sender, EventArgs args)
 {
     Bar1.ProgressTo(1, 15000, Easing.BounceIn);
     Bar2.ProgressTo(1, 15000, Easing.BounceOut);
     Bar3.ProgressTo(1, 15000, Easing.CubicIn);
     Bar4.ProgressTo(1, 15000, Easing.CubicInOut);
     Bar5.ProgressTo(1, 15000, Easing.CubicOut);
     Bar6.ProgressTo(1, 15000, Easing.SinIn);
     Bar7.ProgressTo(1, 15000, Easing.SinInOut);
     Bar8.ProgressTo(1, 15000, Easing.SinOut);
     Bar9.ProgressTo(1, 15000, Easing.SpringIn);
     Bar10.ProgressTo(1, 15000, Easing.SpringOut);
 }
            public void Method()
            {
                var b1 = new Bar1();
                var b2 = new Bar2();
                var b3 = new Bar3();
                var b4 = new Bar4();
                var b5 = new Bar5();
                var b6 = new Bar6();

                b1.Method();
                b2.Method();
                b3.Method();
                b4.Method();
                b5.Method();
                b6.Method();
            }