Example #1
0
 private void pauza()
 {
     timer1.Stop();
     status.czypauza = true;
     // pauzowanie video
     if (kontrCale.get_isAvailable("pause"))
     {
         kontrCale.pause();
     }
     if (kontrNogi.get_isAvailable("pause"))
     {
         kontrNogi.pause();
     }
 }
Example #2
0
 private void PlayerSerie_MouseMoveEvent(object sender, AxWMPLib._WMPOCXEvents_MouseMoveEvent e)
 {
     //cuando el raton esta en el video el video se para y saldra un label para seleccionar
     WMPLib.IWMPControls3 controls = (WMPLib.IWMPControls3)PlayerSerie.Ctlcontrols;
     controls.pause();
     lblVideoSerie.Visible = true;
 }
        private void tmr1_Tick(object sender, EventArgs e)
        {
            count += 1;

            if (count <= 10)
            {
                lblSubtitles.Text = "A.C.M.E is an international organization that is dedicated to fighting crime. We train the recruits in a vigourous 4-year program to become spies. ";
            }

            else if (count > 10 & count <= 19)
            {
                lblSubtitles.Text = " Carmen Sandiego was one of the brightest students ever to pass through the academy. She was the youngest in the cohort yet the most brilliant. ";
            }
            else if (count > 20 & count <= 30)
            {
                lblSubtitles.Text = "We trained the agents in all areas. From combat, agility, arts, cloaking, hacking and more.";
            }
            else if (count > 30 & count <= 34)
            {
                lblSubtitles.Text = "Finally it was graduation day. Everyone was eager to see if they passed and could start fighting and solving real crimes.";
            }
            else if (count > 35 & count <= 42)
            {
                lblSubtitles.Text = "However we couldn't let Carmen graduate due to her age. She was rejected and it absolutely devastated her.";
            }
            else if (count > 42 & count <= 47)
            {
                lblSubtitles.Text = "She was so angry and hated A.C.M.E for not treating her as a rightful agent.";
            }
            else if (count > 47 & count <= 54)
            {
                lblSubtitles.Text = "Then she saw the infamous red cloak and fedora. An evil lightbulb went off in her head.";
            }
            else if (count > 55 & count <= 63)
            {
                lblSubtitles.Text = "She snuck past the guards carefully.";
            }
            else if (count > 63 & count <= 70)
            {
                lblSubtitles.Text = "She hijacked a boat and escaped the academy with all our secrets.";
            }
            else if (count > 71 & count <= 76)
            {
                lblSubtitles.Text = "She began her life as Carmen Sandiego - a robber, a thief, and A.C.M.E's most wanted villain!";
            }
            else if (count > 76 & count <= 80)
            {
                WMPLib.IWMPControls3 pause = (WMPLib.IWMPControls3)wmpCarmenHistory.Ctlcontrols;
                if (pause.get_isAvailable("pause"))
                {
                    pause.pause();
                }
            }
            else if (count > 80)
            {
                this.Close();
                frmCaseHome frmCaseHome = new frmCaseHome();
                frmCaseHome.Show();
            }
        }
Example #4
0
 private void pause()
 {
     WMPLib.IWMPControls3 controls = (WMPLib.IWMPControls3)axWindowsMediaPlayer1.Ctlcontrols;
     if (axWindowsMediaPlayer1.playState == WMPLib.WMPPlayState.wmppsPlaying) // Playing
     {
         controls.pause();
     }
 }
Example #5
0
 public void pauseMedia()
 {
     WMPLib.IWMPControls3 controls = (WMPLib.IWMPControls3)mediaPlayer.Ctlcontrols;
     // Check first to be sure the operation is valid.
     if (controls.get_isAvailable("pause"))
     {
         controls.pause();
     }
 }
Example #6
0
 public void pauseMedia(double tick)
 {
     WMPLib.IWMPControls3 controls = (WMPLib.IWMPControls3)mediaPlayer.Ctlcontrols;
     // Check first to be sure the operation is valid.
     controls.currentPosition = tick;
     if (controls.get_isAvailable("pause"))
     {
         controls.pause();
     }
 }
        public void Pause(double _opacity)
        {
            WMPLib.IWMPControls3 controls = (WMPLib.IWMPControls3)MediaPlayer1.Ctlcontrols;

            if (controls.get_isAvailable("pause"))
            {
                controls.pause();
                isPause = true;
            }
            else
            {
                if (isPause)
                {
                    isPause      = false;
                    this.Opacity = _opacity;
                    controls.play();
                }
            }

            controls = null;
        }
Example #8
0
 private void pauseToolStripMenuItem_Click(object sender, EventArgs e)
 {
     WMPLib.IWMPControls3 controls = (WMPLib.IWMPControls3)axWindowsMediaPlayer1.Ctlcontrols;
     controls.pause();
 }
Example #9
0
 /// <summary>
 /// Alternative method to playing game sounds, might not work on all computers
 /// </summary>
 /// <param name="fileName"></param>
 /// <param name="volume"></param>
 public void PlaySounds(string fileName, int volume)
 {
     audio.URL             = @fileName;
     audio.settings.volume = volume;
     controls.pause();
 }