public void setTraceDataAndRefresh(FindingViewItem fviFindingViewItem)
 {
     tvSmartTrace.Tag = fviFindingViewItem;
     refreshSmartTraceTreeView();
     FindingsView.showFindingDetailsInDataGridView(dgvFindingsDetails, fviFindingViewItem.fFinding,
                                                   fviFindingViewItem.oadO2AssessmentDataOunceV6);
 }
        private void tvSmartTrace_AfterSelect(object sender, TreeViewEventArgs e)
        {
            var fviFindingViewItem = (FindingViewItem)tvSmartTrace.Tag;
            O2AssessmentData_OunceV6 fadAssessmentDataOunceV6 = fviFindingViewItem.oadO2AssessmentDataOunceV6;

            switch (e.Node.Tag.GetType().Name)
            {
            case "CallInvocation":
                var cCall = (CallInvocation)e.Node.Tag;
                if (fadAssessmentDataOunceV6.arAssessmentRun.FileIndeces.Length < cCall.fn_id)
                {
                    break;
                }
                String sSourceCodeFile = OzasmtUtils_OunceV6.getFileIndexValue(cCall.fn_id,
                                                                               fviFindingViewItem.oadO2AssessmentDataOunceV6);     //
                //  fadAssessmentDataOunceV6.arAssessmentRun.FileIndeces[cCall.fn_id - 1].value;

                ascx_SourceCodeEditor1.gotoLine(sSourceCodeFile, (int)cCall.line_number);

                ascx_Glee1.showCallInGlee(e.Node.Text);

                FindingsView.showCallInvocationDetailsInDataGridView(dgvCallInvocationDetails, cCall,
                                                                     fviFindingViewItem.oadO2AssessmentDataOunceV6);

                //String sSignature = o2.analysis.Analysis.getStringIndexValue(cCall.sig_id, fadAssessmentDataOunceV6);
                //         ascx_RulesCreator1.addMethodToTargetsList(fadAssessmentDataOunceV6.sDb_id, sSignature, true);
                //         o2.ounce.datalayer.mysql.MySqlEvents.raiseEvent_ShowCustomRulesDetails_MethodSignature(fadAssessmentDataOunceV6.sDb_id, sSignature);

                break;

            //case "AssessmentAssessmentFileFinding":
            //    break;
            default:
                DI.log.error("in tvSmartTrace_AfterSelect: not supported type: {0}", e.Node.Tag.GetType().Name);
                break;
            }
            tvSmartTrace.Focus();
        }