//public static string ascx_ScriptControl { get; set; }
        //[STAThread]

        private static void Main()

        {
            if (O2Messages.openAscxGui())
            {
                KO2MessageQueue.getO2KernelQueue().onMessages += ascx_Scripts_onMessages;

                // O2 Debugger
                O2AscxGUI.openAscx(typeof(ascx_O2MdbgShell), O2DockState.DockBottom, ascx_O2MdbgShellName); //this needs to be opened before the ascx_Breakpoints


                // scripts controls
                //O2AscxGUI.openAscx(typeof(ascx_Scripts), O2DockState.Document, ascx_ScriptsName); // this needs to loaded before ascx_ScriptsFolder
                var scriptsFolder = (ascx_ScriptsFolder)O2AscxGUI.openAscx(typeof(ascx_ScriptsFolder), O2DockState.DockLeft, ascx_ScriptsFolderName);
                scriptsFolder.loadSampleScripts();

                O2AscxGUI.openAscx(typeof(ascx_AssemblyInvoke), O2DockState.DockRight, ascx_AssemblyInvokeName);

                /*O2AscxGUI.openAscx(typeof(ascx_Breakpoints), O2DockState.DockRightAutoHide, ascx_BreakpointsName);
                *  O2AscxGUI.openAscx(typeof(ascx_BreakpointCreator), O2DockState.DockRightAutoHide, ascx_BreakpointCreatorName);
                *  O2AscxGUI.openAscx(typeof(ascx_Variables), O2DockState.DockRightAutoHide, ascx_CurrentFrameDetailsName);
                *  O2AscxGUI.openAscx(typeof(ascx_FindingsCreator), O2DockState.DockRight, ascx_FindingsCreatorName);*/
                O2AscxGUI.addControlToMenu(typeof(ascx_Breakpoints), O2DockState.DockRightAutoHide, ascx_BreakpointsName);
                O2AscxGUI.addControlToMenu(typeof(ascx_BreakpointCreator), O2DockState.DockRightAutoHide, ascx_BreakpointCreatorName);
                O2AscxGUI.addControlToMenu(typeof(ascx_Variables), O2DockState.DockRightAutoHide, ascx_CurrentFrameDetailsName);
                O2AscxGUI.addControlToMenu(typeof(ascx_FindingsCreator), O2DockState.DockRight, ascx_FindingsCreatorName);
            }
        }
Exemplo n.º 2
0
 public void test_openAscxGui()
 {
     DI.log.info("Opening AscxGui");
     O2Messages.openAscxGui();
     DI.log.info("Opening Ascxs");
     O2Messages.openControlInGUI("ascx_LogViewer O2_External_WinFormsUI", O2DockState.DockTop, "Extra Log Viewer");
     O2Messages.openControlInGUI("ascx_Scripts O2_Views_ASCX", O2DockState.DockRight, "O2 Scripts");
     Thread.Sleep(2000);
     DI.log.info("Waiting for AscxGui close");
     O2Messages.closeAscxGui();
     //O2Messages.waitForAscxGuiEnd();
     DI.log.info("Closed AscxGui");
 }