public void createO2AssessmentFromCirFunctions(List <ICirFunction> cirFunctions)
 {
     O2Thread.mtaThread(
         () =>
     {
         this.invokeOnThread(() => btCreateO2AssessmentWithCallFlowTraces.Enabled = false);
         var O2Findings = CirTraces.createO2FindingsFromCirFunctions(cirFunctions);
         ascx_FindingsViewer.openInFloatWindow(O2Findings);
         this.invokeOnThread(() => btCreateO2AssessmentWithCallFlowTraces.Enabled = true);
     });
 }
 public void createO2AssessmentWithCallFlowTraces()
 {
     O2Thread.mtaThread(
         () =>
     {
         this.invokeOnThread(() => btCreateO2AssessmentWithCallFlowTraces.Enabled = false);
         var createdFile = CirTraces.createO2AssessmentWithCallFlowTraces(cirDataAnalysis);
         if (File.Exists(createdFile))
         {
             ascx_FindingsViewer.o2AssessmentLoadEngines.Add(new O2AssessmentLoad_OunceV6());
             ascx_FindingsViewer.o2AssessmentSave = new O2AssessmentSave_OunceV6();
             ascx_FindingsViewer.openInFloatWindow(createdFile);
         }
         this.invokeOnThread(() => btCreateO2AssessmentWithCallFlowTraces.Enabled = true);
     });
 }
 private void createTracesAndShowIt(ICirFunction cirFunction)
 {
     traceTreeView.loadO2Finding(CirTraces.createO2FindingFromCirFunction(cirFunction));
 }