Esempio n. 1
0
 static void Main()
 {
     try
     {
         CreateAndInitializeDB.CreateAndInitializeDatabase();
         App.Main();
     }
     catch (Exception ex)
     {
         MessageBox.Show("An error occurred: " + ex.GetBaseException().Message);
     }
 }
Esempio n. 2
0
 private void Application_Startup(object sender, StartupEventArgs e)
 {
     try
     {
         CreateAndInitializeDB.CreateAndInitializeDatabase();
         // App.Main();
     }
     catch (Exception ex)
     {
         //TODO 1: Log errors
         MessageBox.Show("An error occurred! " + ex.Message);
     }
 }
Esempio n. 3
0
        static void Main()
        {
            try
            {
                CreateAndInitializeDB.CreateAndInitializeDatabase();
                // App.Main();
            }
            catch (Exception ex)
            {
                //TODO 1: Log errors
                MessageBox.Show("An error occurred! " + ex.Message);
            }



            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1());
        }