private void videoPlayerChangeToOriginalSubtitlesHotkeySetButton_Click(object sender, EventArgs e) { var hotkeySettingForm = new HotkeySettingForm(); var dialogResult = hotkeySettingForm.ShowDialog(); if (dialogResult == DialogResult.OK) { videoPlayerChangeToOriginalSubtitlesButtonTextBox.Text = hotkeySettingForm.SettedHotkey.KeyValue; videoPlayerChangeToOriginalSubtitlesButtonTextBox.Tag = hotkeySettingForm.SettedHotkey.ToString(); } hotkeySettingForm.Dispose(); }
private void videoplayerPauseHotkeySetButton_Click(object sender, EventArgs e) { var hotkeySettingForm = new HotkeySettingForm(true); var dialogResult = hotkeySettingForm.ShowDialog(); if (dialogResult == DialogResult.OK) { videoPlayerPauseButtonTextBox.Text = hotkeySettingForm.SettedHotkey.KeyValue; videoPlayerPauseButtonTextBox.Tag = hotkeySettingForm.SettedHotkey.ToString(); } hotkeySettingForm.Dispose(); }