public void executeAction_onFunctionSelect(Node nSelectedNode)
        {
            if (rbOnFunctionSelect_Show.Checked)
            {
                Int32 iNameSpaceDepth;
                Int32.TryParse(cBoxShowFunctionClass_Depth.Text, out iNameSpaceDepth);
                nSelectedNode.NodeAttribute.Label = FilteredSignature.filterSignature(nSelectedNode.Id,
                                                                                      cbGLEE_ShowParameters.Checked,
                                                                                      cbGLEE_ShowReturnClass.Checked,
                                                                                      cbGLEE_ShowNamespace.Checked,
                                                                                      iNameSpaceDepth);
                nSelectedNode.NodeAttribute.Shape = Shape.Box;
            }
            else if (rbOnFunctionSelect_Clear.Checked)
            {
                O2Graph.makeEmptyNode(nSelectedNode);
            }
            else if (rbOnFunctionSelect_Remove.Checked)
            {
                O2Graph.deleteNodeFromGraph(fgdGraphData, nSelectedNode, true);
            }
            else if (rbOnFunctionSelect_HighlightAllCalls_To.Checked)
            {
                applyFiltersToGraph(fgdGraphData.gGraph, true);
                highlighCallsToNode_Recursive(nSelectedNode);
                highlighCallsFromNode_Recursive(nSelectedNode);
            }
            else
            {
            }
            //else if (rbOnFunctionSelect_SClear.Checked)

            /*
             */
        }
 private void btRemoveSelectedNode_Click(object sender, EventArgs e)
 {
     if (nPreviouslySelectedNode != null)
     {
         //String sTy = nPreviouslySelectedNode.GetType().Name;
         O2Graph.deleteNodeFromGraph(fgdGraphData, nPreviouslySelectedNode, true);
         loadGraph(fgdGraphData.gGraph);
         //Node nSelectedNode
     }
 }
        private void btRemoveNodes_NotSelected_Click(object sender, EventArgs e)
        {
            gvSmartTrace.Graph = new Graph("temp graph");
            var lNodesToDelete = new List <Node>();

            foreach (Node nNode in fgdGraphData.dNodes.Values)
            {
                if (nNode.NodeAttribute.Fillcolor == Color.White)
                {
                    lNodesToDelete.Add(nNode);
                }
            }
            foreach (Node nNode in lNodesToDelete)
            {
                O2Graph.deleteNodeFromGraph(fgdGraphData, nNode, true);
            }
            loadGraph(fgdGraphData.gGraph);
        }