private void ConfigureFFMPEGLocationToolStripMenuItem_Click(object sender, EventArgs e) { FfmpegConf ff = new FfmpegConf(); ff.labelTitle.Text = "Configure"; ff.labelDesc.Text = "Select the location of FFMPEG library. We need it to cut the videos. You can download it from here:"; ff.buttonOK.Text = "OK"; ff.buttonOK.Enabled = true; ff.labelSelected.Visible = false; ff.textBox1.Text = Properties.Settings.Default.FfmpegLocation; ff.ShowDialog(); }
private void Form1_Load(object sender, EventArgs e) { axWindowsMediaPlayer1.uiMode = "none"; // check for ffmpeg. if ffmpeg has not configured, show the configuration dialog if (Properties.Settings.Default.FfmpegLocation == "" || System.IO.File.Exists(Properties.Settings.Default.FfmpegLocation) == false) { this.Hide(); FfmpegConf ff = new FfmpegConf(); ff.textBox1.Text = Properties.Settings.Default.FfmpegLocation; if (ff.ShowDialog() != DialogResult.OK) { Application.Exit(); } } SetStatus("Open a video file from menu or drag on drop to the window.", WorkingStatus.Idle); }