コード例 #1
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();
 }
コード例 #2
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();
 }
コード例 #3
0
 public PresentationBackSideFormModel(SystemModel systemModel)
 {
     this._model        = systemModel;
     this._orderControl = _model.GetOrderControl();
     this._mealControl  = _model.GetMealControl();
 }