public StartUpForm(PresentationStartFormModel startFromModel) { InitializeComponent(); this._startFromModel = startFromModel; this._systemModel = _startFromModel.GetSystemModel(); this._categoryControl = _systemModel.GetCategoryControl(); _categoryControl.InitializeCategoryList(); _systemModel.InitializeMealList(); _frontForm = new CustomerSideForm(new PresentationFrontSideFormModel(_systemModel)); _backForm = new RestaurantSideForm(new PresentationBackSideFormModel(_systemModel)); }
public RestaurantSideForm(PresentationBackSideFormModel presentationModel) { InitializeComponent(); this._presentationModel = presentationModel; this._model = _presentationModel.GetSystemModel(); this._mealControl = _model.GetMealControl(); this._orderControl = _model.GetOrderControl(); this._categoryControl = _model.GetCategoryControl(); _model._eventMealButtonClick += new EventHandler(EnableDeleteCategoryButton); InitializeMealTabPage(); InitializeCategoryTabPage(); }
public CustomerSideForm(PresentationFrontSideFormModel presentationModel) { InitializeComponent(); this._presentationModel = presentationModel; this._model = _presentationModel.GetSystemModel(); this._mealControl = _model.GetMealControl(); this._orderControl = _model.GetOrderControl(); this._categoryControl = _model.GetCategoryControl(); this._pageControl = _model.GetPageControl(); _model._eventMealListUpdate += new EventHandler(UpdateGroupBox); _model._eventCategoryListUpdate += new EventHandler(UpdateTab); InitializeDataGridView(); InitializeGroupBox(); }