public DrinkPresentationModel(DrinkModel drinkModel) { _drinkModel = drinkModel; _isAddDrinkList = false; _isAddAdditionList = false; _drink = new Item(); _addition = new Item(); _text = new EzText(); }
//intialize public EzDrinkForm(ref DrinkModel ezDrinkModel, ref PresentationModel ezDrinkPresentationModel) { _ezDrinkModel = ezDrinkModel; _ezDrinkPresentationModel = ezDrinkPresentationModel; _ezDrinkFormToolBox = new EzDrinkFormToolBox(); InitializeComponent(); InitializeAdditionAndDrinkGridView(); _ezDrinkModel._historyChange += UpdateHistory; }
public EzDrinkForm(DrinkModel drinkModel, DrinkPresentationModel presentationModel) { InitializeComponent(); _presentationModel = presentationModel; _drinkModel = drinkModel; SetButton(); SetAdditionButton(); _openFile = new OpenFileDialog(); }
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)); }
static void Main() { Application.SetCompatibleTextRenderingDefault(false); Application.EnableVisualStyles(); DrinkModel drinkModel = new DrinkModel(); DrinkPresentationModel presentationModel = new DrinkPresentationModel(drinkModel); EzDrinkForm ezDrinkForm = new EzDrinkForm(drinkModel, presentationModel); Application.Run(ezDrinkForm); }
//intialize public PresentationModel(ref DrinkModel ezDrinkModel) { _ezDrinkModel = ezDrinkModel; }