예제 #1
0
        static void Main()
        {
            IEcoScooterService service = new EcoScooterService(new EntityFrameworkDAL(new EcoScooterDbContext()));

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new formInicioSesion(service));
        }
예제 #2
0
        static void Main(string[] args)
        {
            try
            {
                IEcoScooterService service = new EcoScooterService(new EntityFrameworkDAL(new EcoScooterDbContext()));

                new Program(service);
            }
            catch (Exception e)
            {
                printError(e);
                Console.WriteLine("Press any key.");
                Console.ReadLine();
            }
        }