private void buttonSend_Click(object sender, EventArgs e) { if (comboBoxTopic.SelectedIndex == 0) { comboBoxTopic.Focus(); return; } if (richTextBoxContents.TextLength == 0) { richTextBoxContents.Focus(); return; } if (!KopsikApi.kopsik_feedback_send(KopsikApi.ctx, comboBoxTopic.Text, richTextBoxContents.Text, openFileDialog.FileName)) { return; } MessageBox.Show("Your feedback was sent successfully.", "Thank you!"); comboBoxTopic.SelectedIndex = 0; richTextBoxContents.Clear(); openFileDialog.Reset(); Close(); }