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(); } }
//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(); } }