Ejemplo n.º 1
0
 private static void SetupDependancies()
 {
     // Order is semi-important, prepare settings should go first.
     Program.PrepareSettings();
     CultureConfigurator.SetupCulture();
     try
     {
         UpdateSystem.ProcessPendingUpdates();
     }
     catch (Exception ex)
     {
         PremadeDialogs.GenericError(ex);
     }
 }
Ejemplo n.º 2
0
        protected override bool OnStartup(StartupEventArgs eventArgs)
        {
            // Order is semi-important, prepare settings should go first.
            Program.PrepareSettings();
            NBugConfigurator.SetupNBug();
            CultureConfigurator.SetupCulture();
            try
            {
                UpdateSystem.ProcessPendingUpdates();
            }
            catch (Exception ex)
            {
                PremadeDialogs.GenericError(ex);
            }

            // Necessary to put form constructor here for objectlistbox. It flips out if
            // the main form is created inside of the EntryPoint constructor.
            MainForm = new MainWindow();
            return(true);
        }