WFA_psychometric_chart.Form1_main.ReDrawingLineAndNodeForLoadXML C# (CSharp) Method

ReDrawingLineAndNodeForLoadXML() public method

public ReDrawingLineAndNodeForLoadXML ( ) : void
return void
        public void ReDrawingLineAndNodeForLoadXML()
        {
            //if (menuStripNodeInfoValues.Count > 0)
            //{
            //    //--This is for replotting all the things again...
            //    series1.Points.Clear();
            //    for (int i = 0; i < menuStripNodeLineInfoValues.Count; i++)//-- this -1 is done because for three points we have two line series..
            //    {
            //        //chart1.Series.Remove(menuStripNodeLineInfoValues[i].lineSeriesID);
            //        menuStripNodeLineInfoValues[i].lineSeriesID.Points.Clear();
            //    }
            //    //--this is redraw functionality
            //    //foreach(var values in menuStripNodeInfoValues)
            //    //--Resetting the index value
            //    incrementIndex = 0;
            //    for (int x = 0; x < menuStripNodeInfoValues.Count; x++)
            //    {
            //        string labelValue;
            //        if (menuStripNodeInfoValues[x].showItemText == "Label")
            //        {
            //            labelValue = menuStripNodeInfoValues[x].label;
            //        }
            //        else if (menuStripNodeInfoValues[x].showItemText == "Name")
            //        {
            //            labelValue = menuStripNodeInfoValues[x].name;
            //        }
            //        else
            //        {
            //            labelValue = menuStripNodeInfoValues[x].source;
            //        }


            //        //--Redefined code bbk305
            //        ReDrawPointsForXML(series1, menuStripNodeInfoValues[x].xVal, menuStripNodeInfoValues[x].yVal, menuStripNodeInfoValues[x].colorValue, menuStripNodeInfoValues[x].source, menuStripNodeInfoValues[x].name, menuStripNodeInfoValues[x].label, labelValue);

            //        //CODE : BBK305A
            //        incrementIndex++;
            //        index++;
            //        //indexForSeriesNodePoint++;

            //    }
            //    //--resetting incrementIndex
            //    //CODE: BBK305A  
            //    incrementIndex = 0;

            //    if (menuStripNodeLineInfoValues.Count > 0)
            //    {

            //        for (int x = 0; x < menuStripNodeLineInfoValues.Count; x++)
            //        {
            //            incrementIndex++;


            //            //--tHIS IS REDEFINED code bbk305
            //            ReDrawLinesForXML(menuStripNodeLineInfoValues[x].ID.ToString(), menuStripNodeLineInfoValues[x].prevNodeId.ToString(), menuStripNodeLineInfoValues[x].nextNodeId.ToString(), menuStripNodeLineInfoValues[x].lineSeriesID, menuStripNodeLineInfoValues[x].lineColorValue);

            //        }

            //    }

            //    chart1.Invalidate();//--Invalidates the entire surface of the Chart and causes the Chart control to be redrawn.

            //    //CODE :BBK305A \\
            //    incrementIndex = 0;//reset the values again..
            //    //indexForSeriesNodePoint = 0;//Resetting the value
            //}//Close of if menustripnodeinfovalues

        }//--Close of the actual function....
Form1_main