Пример #1
0
        private static int Gui(KSPManager manager, GuiOptions options, string[] args)
        {
            // TODO: Sometimes when the GUI exits, we get a System.ArgumentException,
            // but trying to catch it here doesn't seem to help. Dunno why.

            GUI.Main_(args, manager, options.ShowConsole);

            return(Exit.OK);
        }
Пример #2
0
        private static int ShowGui(string[] args, IUser user, GuiOptions options, Func <string[], GuiOptions, int> showGuiFunc)
        {
            if (showGuiFunc == null)
            {
                user.RaiseError("Error: option --gui not available, you have a headless exe.");
                return(Exit.BADOPT);
            }

            // TODO: Sometimes when the GUI exits, we get a System.ArgumentException,
            // but trying to catch it here doesn't seem to help. Dunno why.
            return(showGuiFunc(args, options));
        }
Пример #3
0
        private static int Gui(GuiOptions options, string[] args)
        {
            // TODO: Sometimes when the GUI exits, we get a System.ArgumentException,
            // but trying to catch it here doesn't seem to help. Dunno why.

            GUI.Main_(args, options.ShowConsole);

            return Exit.OK;
        }