Beispiel #1
0
        /// <summary>
        /// Starts the interface and controller.
        /// </summary>
        /// <param name="ConfigPath">Config path.</param>
        private static void RunWindow(string ConfigPath = null)
        {
            try
            {
                Application.Init ();

                Gtk.Rc.ParseString (Resources.gtkrc);

                var con = new Backend.Controller (ConfigPath);
                MainWindow win = new MainWindow (con, IsVerbose);
                win.SetGtkTheme (Resources.gtkrc);
                win.Show ();
                Application.Run ();
            } catch (Exception ex)
            {
                Console.Error.WriteLine (ex);
            }
        }
Beispiel #2
0
        /// <summary>
        /// Starts the interface and controller.
        /// </summary>
        /// <param name="ConfigPath">Config path.</param>
        private static void RunWindow(string ConfigPath = null)
        {
            try
            {
                Application.Init();

                Gtk.Rc.ParseString(Resources.gtkrc);

                var        con = new Backend.Controller(ConfigPath);
                MainWindow win = new MainWindow(con, IsVerbose);
                win.SetGtkTheme(Resources.gtkrc);
                win.Show();
                Application.Run();
            }
            catch (Exception ex)
            {
                Console.Error.WriteLine(ex);
            }
        }