public void Initialize() { _systemControl = new SystemModel(); _mealControl = _systemControl.GetMealControl(); _categoryControl = _systemControl.GetCategoryControl(); _categoryControl.InitializeCategoryList(); _systemControl.InitializeMealList(); _target = new PrivateObject(_mealControl); }
public void Initialize() { _systemModel = new SystemModel(); _presentationModel = new PresentationFrontSideFormModel(_systemModel); _pageControl = _systemModel.GetPageControl(); _mealControl = _systemModel.GetMealControl(); _categoryControl = _systemModel.GetCategoryControl(); _target = new PrivateObject(_presentationModel); }
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(); }
public void GetMealControlTest() { MealControl mealControl = _model.GetMealControl(); }