public static void openOzasmtFile()
        {
            ascx_FindingsViewer.o2AssessmentLoadEngines.Add(new O2AssessmentLoad_OunceV6());
            // open the source Findings Viewer
            O2AscxGUI.openAscxAsForm(typeof(ascx_FindingsViewer), findingsViewerControlName_Source);
            // load assessment file into Source Findings Viewer
            // we have to use the direct call due to a bug in Mono
            //findingsViewerControlName_Source.invokeOnAscx("loadO2Assessment", new object[] { ozasmtFileToUse });
            O2AscxGUI_Ext.invokeOnAscx(findingsViewerControlName_Source, "loadO2Assessment", new object[] { ozasmtFileToUse });

            MessageBox.Show("Ozasmt File loaded in Findings Viewer Control: " + ozasmtFileToUse);
        }
Beispiel #2
0
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        //  [STAThread]
        private static void Main()
        {
            //SpringExec.loadDefaultConfigFile();
            // new O2DockPanel(typeof (ascx_OzasmtQuery));

            ascx_FindingsViewer.o2AssessmentLoadEngines.Add(new O2AssessmentLoad_OunceV6());
            ascx_FindingsViewer.o2AssessmentLoadEngines.Add(new O2AssessmentLoad_OunceV6_1());
            ascx_FindingsViewer.o2AssessmentSave = new O2AssessmentSave_OunceV6();
            ascx_OzasmtQuery.o2AssessmentLoadEngines.Add(new O2AssessmentLoad_OunceV6());
            ascx_OzasmtQuery.o2AssessmentLoadEngines.Add(new O2AssessmentLoad_OunceV6_1());
            ascx_OzasmtQuery.o2AssessmentSave = new O2AssessmentSave_OunceV6();

            if (O2AscxGUI.launch("Findings Query"))
            {
                O2AscxGUI.openAscx(typeof(ascx_OzasmtQuery), O2DockState.Document, "Findings Query");

                // load demo file
                //"Ozasmt Query".invokeOnAscx("loadSampleScripts", new object[]{typeof(OzasmtScriptSamples)});
                // we have to use the direct call due to a bug in Mono
                O2AscxGUI_Ext.invokeOnAscx("Ozasmt Query", "loadSampleScripts", new object[] { typeof(OzasmtScriptSamples) });
            }
        }