예제 #1
0
 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));
 }
예제 #2
0
 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();
 }
예제 #3
0
 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();
 }
예제 #5
0
 public PresentationStartFormModel(SystemModel systemModel)
 {
     this._model = systemModel;
 }
예제 #6
0
 public PresentationFrontSideFormModel(SystemModel systemModel)
 {
     this._model       = systemModel;
     this._pageControl = _model.GetPageControl();
 }