public DrinkPresentationModel(DrinkModel drinkModel)
 {
     _drinkModel        = drinkModel;
     _isAddDrinkList    = false;
     _isAddAdditionList = false;
     _drink             = new Item();
     _addition          = new Item();
     _text = new EzText();
 }
Exemple #2
0
 //intialize
 public EzDrinkForm(ref DrinkModel ezDrinkModel, ref PresentationModel ezDrinkPresentationModel)
 {
     _ezDrinkModel             = ezDrinkModel;
     _ezDrinkPresentationModel = ezDrinkPresentationModel;
     _ezDrinkFormToolBox       = new EzDrinkFormToolBox();
     InitializeComponent();
     InitializeAdditionAndDrinkGridView();
     _ezDrinkModel._historyChange += UpdateHistory;
 }
Exemple #3
0
 public EzDrinkForm(DrinkModel drinkModel, DrinkPresentationModel presentationModel)
 {
     InitializeComponent();
     _presentationModel = presentationModel;
     _drinkModel        = drinkModel;
     SetButton();
     SetAdditionButton();
     _openFile = new OpenFileDialog();
 }
Exemple #4
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            DrinkModel        ezDrinkModel             = new DrinkModel();
            PresentationModel ezDrinkPresentationModel = new PresentationModel(ref ezDrinkModel);

            Application.Run(new EzDrinkForm(ref ezDrinkModel, ref ezDrinkPresentationModel));
        }
Exemple #5
0
        static void Main()
        {
            Application.SetCompatibleTextRenderingDefault(false);
            Application.EnableVisualStyles();

            DrinkModel             drinkModel        = new DrinkModel();
            DrinkPresentationModel presentationModel = new DrinkPresentationModel(drinkModel);
            EzDrinkForm            ezDrinkForm       = new EzDrinkForm(drinkModel, presentationModel);

            Application.Run(ezDrinkForm);
        }
 //intialize
 public PresentationModel(ref DrinkModel ezDrinkModel)
 {
     _ezDrinkModel = ezDrinkModel;
 }