Esempio n. 1
0
        public static void Main(string[] args)
        {
            NUnitTestClass.RunTests();

            Application.Init();

#if (!DEBUG)
            try {
                AppDomain.CurrentDomain.UnhandledException += (sender, e) => HandleException(e.ExceptionObject);
                GLib.ExceptionManager.UnhandledException   += (args) => HandleException(args.ExceptionObject);
#endif

            MainWindow win;
            if (args.Length >= 1)
            {
                win = new MainWindow(args[0]);
            }
            else
            {
                win = new MainWindow();
            }
            Application.Run();

#if (!DEBUG)
        }

        catch (Exception e) {
            HandleException(e);
        }
#endif
        }
Esempio n. 2
0
        public static void Main(string[] args)
        {
            NUnitTestClass.RunTests();

            Application.Init();
            MainWindow win;

            if (args.Length >= 1)
            {
                win = new MainWindow(args[0]);
            }
            else
            {
                win = new MainWindow();
            }
            win.Show();
            Application.Run();
        }