示例#1
0
文件: Form1.cs 项目: windygu/Video
 private void timer2_Tick(object sender, EventArgs e)
 {
     if (S.ReturnStr().Contains("FF"))
     {
         Play();
         S.SetStrEmpty();
     }
     else if (S.ReturnStr().Contains("SS"))
     {
         Stop();
         S.SetStrEmpty();
     }
     else if (S.ReturnStr().Contains("PP"))
     {
         pause();
         S.SetStrEmpty();
     }
     else if (S.ReturnStr().Contains("RR"))
     {
         Forward();
         S.SetStrEmpty();
     }
     else if (S.ReturnStr().Contains("LL"))
     {
         Back();
         S.SetStrEmpty();
     }
 }
示例#2
0
文件: Video.cs 项目: zodsoft/Video
 //tcp通信
 private void timer2_Tick(object sender, EventArgs e)
 {
     if (S.ReturnStr().Contains("FF"))
     {
         if (System.IO.Path.GetExtension(comboBox_fileselect.SelectedItem.ToString()) != ".png" && System.IO.Path.GetExtension(comboBox_fileselect.SelectedItem.ToString()) != ".jpg")
         {
             Play(comboBox_fileselect.SelectedItem.ToString());
             picBox.Visible = false;
             panel1.Visible = true;
         }
         S.SetStrEmpty();
     }
     else if (S.ReturnStr().Contains("SS"))
     {
         Stop();
         S.SetStrEmpty();
     }
     else if (S.ReturnStr().Contains("PP"))
     {
         pause();
         S.SetStrEmpty();
     }
     else if (S.ReturnStr().Contains("RR"))
     {
         Forward();
         S.SetStrEmpty();
     }
     else if (S.ReturnStr().Contains("LL"))
     {
         Back();
         S.SetStrEmpty();
     }
     else if (S.ReturnStr().Contains("CC"))
     {
         Fullscreen();
         S.SetStrEmpty();
     }
 }