public Win()
        {
            InitializeComponent();
            PhysicsTimer          = new System.Windows.Threading.DispatcherTimer();      //Set Timer(all 1ms)
            PhysicsTimer.Interval = TimeSpan.FromMilliseconds(1);                        //Set Timer(all 1ms)
            PhysicsTimer.Tick    += PhysicsTimer_Tick;                                   //Set Timer(all 1ms)
                                                                                         //Set Timer(all 1ms)
            JumpTimerM          = new System.Windows.Threading.DispatcherTimer();        //Set Timer(all 1ms)
            JumpTimerM.Interval = TimeSpan.FromMilliseconds(1);                          //Set Timer(all 1ms)
            JumpTimerM.Tick    += JumpTimerM_Tick;                                       //Set Timer(all 1ms)
                                                                                         //Set Timer(all 1ms)
            JumpTimerT          = new System.Windows.Threading.DispatcherTimer();        //Set Timer(all 1ms)
            JumpTimerT.Interval = TimeSpan.FromMilliseconds(1);                          //Set Timer(all 1ms)
            JumpTimerT.Tick    += JumpTimerT_Tick;                                       //Set Timer(all 1ms)
                                                                                         //Set Timer(all 1ms)
            RightTimerM          = new System.Windows.Threading.DispatcherTimer();       //Set Timer(all 1ms)
            RightTimerM.Interval = TimeSpan.FromMilliseconds(1);                         //Set Timer(all 1ms)
            RightTimerM.Tick    += RightTimerM_Tick;                                     //Set Timer(all 1ms)
                                                                                         //Set Timer(all 1ms)
            LeftTimerM          = new System.Windows.Threading.DispatcherTimer();        //Set Timer(all 1ms)
            LeftTimerM.Interval = TimeSpan.FromMilliseconds(1);                          //Set Timer(all 1ms)
            LeftTimerM.Tick    += LeftTimerM_Tick;                                       //Set Timer(all 1ms)
                                                                                         //Set Timer(all 1ms)
            RightTimerT          = new System.Windows.Threading.DispatcherTimer();       //Set Timer(all 1ms)
            RightTimerT.Interval = TimeSpan.FromMilliseconds(1);                         //Set Timer(all 1ms)
            RightTimerT.Tick    += RightTimerT_Tick;                                     //Set Timer(all 1ms)
                                                                                         //Set Timer(all 1ms)
            LeftTimerT          = new System.Windows.Threading.DispatcherTimer();        //Set Timer(all 1ms)
            LeftTimerT.Interval = TimeSpan.FromMilliseconds(1);                          //Set Timer(all 1ms)
            LeftTimerT.Tick    += LeftTimerT_Tick;                                       //Set Timer(all 1ms)
            rnd  = new Random();                                                         //Set Timer(all 1ms)
            rand = rnd.Next(10, 16);                                                     //Set Timer(all 1ms)

            this.Opacity = Class1.brightness / 1850;                                     //Brightness
            WE.Volume    = Class1.Volume;                                                //Volume Music
            WE.Play();                                                                   //Start Music
        }
 private void media_MediaEnded(object sender, RoutedEventArgs e)
 {
     WE.Stop();
     WE.Play();
 }