예제 #1
0
        private static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            // Set the unhandled exception mode to force all Windows Forms errors
            // to go through our handler.
            Application.SetUnhandledExceptionMode(UnhandledExceptionMode.CatchException);

            // Add the event handler for handling non-UI thread exceptions to the event.
            AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);
            Application.ThreadException           += Application_ThreadException;
            DataStorageHandler.StorageFileLocation = "DataStorage.json";
            DataStorageHandler.Init();

            //DataStorageHandler.Storage.StockDishes.Add();

            Application.Run(new Login(FormWindowState.Normal));
            // change Form to Login Application.Run(new Login(false));

            DataStorageHandler.SaveChanges();
        }
예제 #2
0
 static void Main(string[] args)
 {
     DataStorageHandler.Init("../../../DAL/ProjectB.json");
     HuidigeFilms.huidigeFilms();
     //Startscherm.startscherm();
 }
예제 #3
0
 private static void Main(string[] args)
 {
     DataStorageHandler.Init("ProjectB.json");
     WelcomePage.Run();
 }