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(); }
public PresentationBackSideFormModel(SystemModel systemModel) { this._model = systemModel; this._orderControl = _model.GetOrderControl(); this._mealControl = _model.GetMealControl(); }