예제 #1
0
 //intialize
 public EzDrinkForm(ref DrinkModel ezDrinkModel, ref PresentationModel ezDrinkPresentationModel)
 {
     _ezDrinkModel             = ezDrinkModel;
     _ezDrinkPresentationModel = ezDrinkPresentationModel;
     _ezDrinkFormToolBox       = new EzDrinkFormToolBox();
     InitializeComponent();
     InitializeAdditionAndDrinkGridView();
     _ezDrinkModel._historyChange += UpdateHistory;
 }
예제 #2
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));
        }