예제 #1
0
        private void RoterFærdig2(object sender, EventArgs e)
        {
            double          Heightt   = FyldHæld.Height = 179;
            DoubleAnimation animation = new DoubleAnimation(10, Heightt, TimeSpan.FromSeconds(0.8));

            animation.Completed += new EventHandler(RoterFærdig3);
            FyldHæld.BeginAnimation(Rectangle.HeightProperty, animation);
        }
예제 #2
0
        private void RoterFærdig2(object sender, EventArgs e)
        {
            double          Heightt   = FyldHæld.Height = 179;
            DoubleAnimation animation = new DoubleAnimation(10, Heightt, TimeSpan.FromSeconds(0.8));

            animation.Completed += new EventHandler(RoterFærdig3);
            FyldHæld.BeginAnimation(Rectangle.HeightProperty, animation);

            System.Media.SoundPlayer player = new System.Media.SoundPlayer(Environment.CurrentDirectory + @"\Drikkelyd.wav");
            player.Play();
        }
예제 #3
0
        private void RoterFærdig4(object sender, EventArgs e)
        {
            double          Height    = FyldHæld.Height = 0;
            DoubleAnimation animation = new DoubleAnimation(0, Height, TimeSpan.FromSeconds(0.3));

            FyldHæld.BeginAnimation(Rectangle.HeightProperty, animation);

            double          Heightt    = SidsteFyld.Height = 0;
            DoubleAnimation animation1 = new DoubleAnimation(150, Heightt, TimeSpan.FromSeconds(1.5));

            animation1.Completed += new EventHandler(RoterTilbage);
            SidsteFyld.BeginAnimation(Rectangle.HeightProperty, animation1);
        }