static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            List <Restaurant> allRestaurants = new List <Restaurant>();
            List <Cine>       allCinemas     = new List <Cine>();
            List <Tienda>     allStores      = new List <Tienda>();

            MainForm main = new MainForm();

            //Controlador Restaurants.
            RestaurantController rc = new RestaurantController(main, allRestaurants);
            CineController       cc = new CineController(main, allCinemas);
            TiendaController     tt = new TiendaController(main, allStores);

            main.SetController(rc, cc, tt);



            Application.Run(main);
        }
Пример #2
0
 public void SetController(RestaurantController _Rcontroller, CineController _CController, TiendaController _TController)
 {
     this.RController = _Rcontroller; this.CController = _CController;
     this.TController = _TController;
 }