Exemplo n.º 1
0
 public LeftView(MainForm mainView)
 {
     InitializeComponent();
     Size = new System.Drawing.Size(200, 500);
     Location = new System.Drawing.Point(0, 0);
     MainView = mainView;
 }
Exemplo n.º 2
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            //Create Data Access Layer
            FoodContext context = new FoodContext();
            FoodRepository fRepository = new FoodRepository(context);
            FoodCategoryRepository fCatRepository = new FoodCategoryRepository(context);
            PresetMealRepository pMRepository = new PresetMealRepository(context);
            UnitOfWork UnitOfWork = new UnitOfWork(context, fRepository, fCatRepository,pMRepository);

            //Create Business Layer
            FoodTracker FoodTracker = new FoodTracker(UnitOfWork);

            //Create UI Layer
            MainForm MainForm = new MainForm(FoodTracker);
            MainPresenter MainPresenter = new MainPresenter(MainForm, FoodTracker);

            Application.Run(MainForm);
        }