Create a method in the form class that shows the form and returns a result. This is similar to the MessageBox.Show method. In the example below the FoodForm has a method called ShowForm. This method returns a custom class called FoodFormResult that has all the results needed from the form after it closes.
public FoodFormResult ShowForm()
{
return new FoodFormResult(
ShowDialog() == DialogResult.OK,
_indicators);
}
Every time the form class is created (ex. new FoodForm()), all the existing values in the form are lost.