Пример #1
0
        void PopulateGraph(string strGraphDesc, int nUpCount, int nDownCount)
        {
            reqTraceGraphDot = new ReqTraceGraphDot(strGraphDesc);
            ReqTraceNode reqTraceNode;

            tabPageTree.Controls.Clear();
            arrTraceGraphNode.Clear();

            ReqTraceUIGraphNode.Init(tabPageTree.Controls, this as ReqTraceUIGraphNode.ITraceViewGraphCb);

            for (int i = nUpCount; i >= -nDownCount; i--)
            {
                for (int k = 0; k < reqTraceGrid.GetElementCount(i); k++)
                {
                    reqTraceNode = reqTraceGrid[i, k];
                    if (reqTraceNode != null)
                    {
                        arrTraceGraphNode.Add(new ReqTraceUIGraphNode(nUpCount, reqTraceNode));
                        reqTraceGraphDot.Add(new ReqTraceDotNode(nUpCount, reqTraceNode));
                    }
                }
            }

            webBrowserReqTraceGraph.Url = new Uri(reqTraceGraphDot.Export2svg());
        }
Пример #2
0
 void tb_MouseEnter(object sender, EventArgs e)
 {
     actNode = this;
 }