Cags
Contributor
As anybody that reads all threads will know I recently decided to build a food calculator. This application has two main collection in it, a collection of recipes and a collection of consumables. The app currently consists of 3 forms.
MainForm
AddConsumableForm
AddRecipeForm
My question is, would it be better to store the collections in a public static class that would be accessible from all forms, or would it be better to pass a reference to the AddForms whenever they are Shown?
MainForm
AddConsumableForm
AddRecipeForm
My question is, would it be better to store the collections in a public static class that would be accessible from all forms, or would it be better to pass a reference to the AddForms whenever they are Shown?