private void buttonMpvSettings_Click(object sender, EventArgs e) { if (LibMpvDynamic.IsInstalled) { Configuration.Settings.General.VideoPlayer = "MPV"; DialogResult = DialogResult.OK; return; } using (var form = new SettingsMpv(true)) { if (form.ShowDialog(this) == DialogResult.OK) { Configuration.Settings.General.VideoPlayer = "MPV"; DialogResult = DialogResult.OK; } } }
private void buttonMpvSettings_Click(object sender, EventArgs e) { using (var form = new SettingsMpv()) { form.ShowDialog(this); RefreshMpvSettings(); } }