Нужно конвертировать в VB на C#
<pre lang="vb"> Private Sub Start_Click(sender As Object, e As EventArgs) Handles Start.Click If VideoPath.Text = "" Then MessageBox.Show("YOU NEED TO ADD THE VIDEO PATH!") ElseIf OutpuPath.Text = "" Then MessageBox.Show("YOU NEED TO ADD THE OUTPUT PATH!") ElseIf Srt.Checked Then Shell("cmd.exe /k" + "ffmpeg -i " + VideoPath.Text + " " + APBtn.Text + " -acodec copy -map_metadata -1 -vf " + "subtitles=" + SubtitlePath.Text + " " + OutpuPath.Text + " -y") Else Shell("cmd.exe /k" + "ffmpeg -i " + VideoPath.Text + " " + APBtn.Text + " -acodec copy -map_metadata -1 -vf " + "ass=" + SubtitlePath.Text + " " + OutpuPath.Text + " -y") End If End Sub
Нужно преобразовать в C#
Что я уже пробовал:
<pre><pre lang="vb"> Private Sub Start_Click(sender As Object, e As EventArgs) Handles Start.Click If VideoPath.Text = "" Then MessageBox.Show("YOU NEED TO ADD THE VIDEO PATH!") ElseIf OutpuPath.Text = "" Then MessageBox.Show("YOU NEED TO ADD THE OUTPUT PATH!") ElseIf Srt.Checked Then Shell("cmd.exe /k" + "ffmpeg -i " + VideoPath.Text + " " + APBtn.Text + " -acodec copy -map_metadata -1 -vf " + "subtitles=" + SubtitlePath.Text + " " + OutpuPath.Text + " -y") Else Shell("cmd.exe /k" + "ffmpeg -i " + VideoPath.Text + " " + APBtn.Text + " -acodec copy -map_metadata -1 -vf " + "ass=" + SubtitlePath.Text + " " + OutpuPath.Text + " -y") End If End Sub
Нужно преобразовать в C#