private void removeButton_Click(object sender, EventArgs e) { int memberId = Convert.ToInt32(hiddenIdLabel.Text); string date = mealDateTimePicker.Text; DialogResult result = MessageBox.Show("Are you sure you want to Delete", "confirmation", MessageBoxButtons.OKCancel, MessageBoxIcon.Information); if (result == DialogResult.OK) { string message = aMealManager.RemoveMeal(memberId, date); MessageBox.Show(message); } GeMealList(); Reset(); }