コード例 #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();
     }
 }