private void Edit(HotkeySelectionControl selectionControl) { using (TaskSettingsForm taskSettingsForm = new TaskSettingsForm(selectionControl.Setting.TaskSettings)) { taskSettingsForm.ShowDialog(); selectionControl.UpdateDescription(); } }
private void tsbTaskSettings_Click(object sender, EventArgs e) { using (TaskSettingsForm taskSettingsForm = new TaskSettingsForm(Program.DefaultTaskSettings, true)) { taskSettingsForm.ShowDialog(); } Program.Settings.SaveAsync(Program.ApplicationConfigFilePath); }