public static ascx_Panel_With_Inspector runControl(string file)
        {
            var currentProcess     = Processes.getCurrentProcess();
            var panelWithInspector = O2Gui.load <ascx_Panel_With_Inspector>("C# REPL Editor             ({0})".format(clr.details())); //and name: {1})".format(clr.details(), currentProcess.ProcessName));

            if (file.valid())
            {
                panelWithInspector.inspector.openFile(file);
            }
            return(panelWithInspector);
        }
        public static ascx_Simple_Script_Editor startControl()
        {
            var control = O2Gui.load <ascx_Simple_Script_Editor>("O2 Simple Script Editor", 700, 300);

            control.invokeOnThread(() =>
            {
                control.InvocationParameters.Add("testString", "Hello World");
                control.InvocationParameters.Add("testNumber", 42);
                control.commandsToExecute.set_Text(control.defaultCode);
            });
            return(control);
        }
        public static ascx_Simple_Script_Editor startControl_NoCodeComplete()
        {
            var host = O2Gui.load <Panel>("O2 Simple Script Editor", 700, 300);

            return(host.invokeOnThread(
                       () =>
            {
                var scriptEditor = new ascx_Simple_Script_Editor(false);
                scriptEditor.fill();
                host.add_Control(scriptEditor);
                return scriptEditor;
            }));
        }
 public static void runControl()
 {
     O2Gui.load <ascx_GraphWithInspector>("Graph");
 }
Esempio n. 5
0
 public static Panel showAsForm(this string title, int width, int height, bool startHidden)
 {
     return(O2Gui.load <Panel>(title, width, height, startHidden));
 }