private void button_save_Click(object sender, EventArgs e) { var actionOption = (OptionAction)comboBox1.SelectedIndex; switch (actionOption) { case OptionAction.NoAction: channelPointsService.UpdateRedemptionOption(ActiveSelection, actionOption); break; case OptionAction.TwitchCommand: channelPointsService.UpdateRedemptionOption(ActiveSelection, actionOption, textBox_CommandText.Text, checkBox_UsesInput.Checked, checkBox_ExecuteOnRedeemer.Checked, checkBox_SendResponse.Checked, textBox_Response.Text); break; case OptionAction.AudioCommand: channelPointsService.UpdateRedemptionOption(ActiveSelection, actionOption, textBox_SelectSound.Text); break; default: // Hmm this should never happen. throw new NotImplementedException(); } LoadOptions(); }