//intialize public EzDrinkForm(ref DrinkModel ezDrinkModel, ref PresentationModel ezDrinkPresentationModel) { _ezDrinkModel = ezDrinkModel; _ezDrinkPresentationModel = ezDrinkPresentationModel; _ezDrinkFormToolBox = new EzDrinkFormToolBox(); InitializeComponent(); InitializeAdditionAndDrinkGridView(); _ezDrinkModel._historyChange += UpdateHistory; }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); DrinkModel ezDrinkModel = new DrinkModel(); PresentationModel ezDrinkPresentationModel = new PresentationModel(ref ezDrinkModel); Application.Run(new EzDrinkForm(ref ezDrinkModel, ref ezDrinkPresentationModel)); }