Example #1
0
        // ============================================
        //               APPLICATION MAIN
        // ============================================
        public static int Main(string[] args)
        {
            try {
                Gtk.Application.Init();

                // Initialize NyImageViewer (NyIV) Main Application
                NyIVApp nyImageViewer = new NyIVApp();
                nyImageViewer.Initialize();
                nyImageViewer.Run();

                // Load Plugins
                new PluginManager(nyImageViewer);

                Gtk.Application.Run();
            } catch (Exception e) {
                Console.WriteLine("{0} {1} Error", Info.Name, Info.Version);
                Console.WriteLine("Source:  {0}", e.Source);
                Console.WriteLine("Message: {0}", e.Message);
                Console.WriteLine("Stack Trace:\n{0}", e.StackTrace);
                return(1);
            }
            return(0);
        }
Example #2
0
        // ============================================
        //               APPLICATION MAIN
        // ============================================
        public static int Main(string[] args)
        {
            try {
                Gtk.Application.Init();

                // Initialize NyImageViewer (NyIV) Main Application
                NyIVApp nyImageViewer = new NyIVApp();
                nyImageViewer.Initialize();
                nyImageViewer.Run();

                // Load Plugins
                new PluginManager(nyImageViewer);

                Gtk.Application.Run();
            } catch (Exception e) {
                Console.WriteLine("{0} {1} Error", Info.Name, Info.Version);
                Console.WriteLine("Source:  {0}", e.Source);
                Console.WriteLine("Message: {0}", e.Message);
                Console.WriteLine("Stack Trace:\n{0}", e.StackTrace);
                return(1);
            }
            return(0);
        }