public void test_OzastFilesIntoO2Findings() { // set-up o2AssessmentLoad engines ascx_FindingsViewer.o2AssessmentLoadEngines.Add(new O2AssessmentLoad_OunceV6()); ascx_FindingsViewer.o2AssessmentLoadEngines.Add(new O2AssessmentLoad_OunceV6_1()); // open FindingsViewer controls O2AscxGUI.openAscxAsForm(typeof(ascx_FindingsViewer), findingsViewerControlOzasmt60); O2AscxGUI.openAscxAsForm(typeof(ascx_FindingsViewer), findingsViewerControlOzasmt61); // load ozasmt files in it findingsViewerControlOzasmt60.invokeOnAscx("loadO2Assessment", new object[] { ozasmt60 }); findingsViewerControlOzasmt61.invokeOnAscx("loadO2Assessment", new object[] { ozasmt61 }); // wait for FindingsViewer controls to close //O2AscxGUI.waitForAscxGuiClose(); O2AscxGUI.closeAscxParent(findingsViewerControlOzasmt61); O2AscxGUI.closeAscxParent(findingsViewerControlOzasmt60); //O2AscxGUI.close(); //O2AscxGUI.waitForAscxGuiClose(); }
public void closeGui() { O2AscxGUI.closeAscxParent(sourceCodeEditorControl); //O2AscxGUI.waitForAscxGuiClose(); }
public void closeGui() { //O2AscxGUI.waitForAscxGuiClose(); O2AscxGUI.closeAscxParent(rulePackViewerControlName); }
public void closeGUI() { //O2AscxGUI.waitForAscxGuiClose(); O2AscxGUI.closeAscxParent(joinSinksToSourcesControl); }
private static void o2MessageQueue_onMessages(IO2Message o2Message) { try { if (o2Message is IM_GUIAction) { var mGuiAction = (IM_GUIAction)o2Message; DI.log.info("O2GuiWithDockPanel received IM_GUIAction of action: {0}", mGuiAction.GuiAction); switch (mGuiAction.GuiAction) { case IM_GUIActions.isAscxGuiAvailable: isAscxGuiAvailable(); break; // case (IM_GUIActions.openControlInGui): // don't handle these here case IM_GUIActions.getGuiAscx: if (mGuiAction.returnDataCallback != null) { mGuiAction.returnDataCallback(O2DockUtils.getAscx(mGuiAction.controlName)); } break; case IM_GUIActions.executeOnAscx: if (mGuiAction.controlName == null || mGuiAction.targetMethod == null || mGuiAction.methodParameters == null) { DI.log.error( "in O2Environment.O2MessagesHandler.o2MessageQueue_onMessages received a O2Message for IM_GUIActions.executeOnAscx, but either the targetMethod or methodParameters are null"); } else { var ascxControlToExecute = O2AscxGUI.getAscx(mGuiAction.controlName); if (ascxControlToExecute == null) { DI.log.error( "in O2MessagesHandler...IM_GUIActions.executeOnAscx, could not get control: {0}", mGuiAction.controlName); } else { o2Message.returnData = DI.reflection.invoke(ascxControlToExecute, mGuiAction.targetMethod, mGuiAction.methodParameters); } } break; case IM_GUIActions.closeAscxParent: O2AscxGUI.closeAscxParent(mGuiAction.controlName); break; case IM_GUIActions.openControlInGui: // this is a special case since we should only handle this if the main GUI is not loaded if (false == O2AscxGUI.isGuiLoaded()) // this tends to happen on Unit tests where we only have one control loaded { // and if the Gui is not loaded open this control as a stand alone FORM O2AscxGUI.openAscxAsForm(mGuiAction.controlType, mGuiAction.controlName); } break; } } } catch (Exception ex) { DI.log.ex(ex, " in O2MessagesHandler.o2MessageQueue_onMessages"); } }
public void closeGui() { O2AscxGUI.closeAscxParent(applyRulesToFindingsControlName); }