private void Reset()
 {
     SpeedPlot.Clear();
     SpeedPlot.Refresh();
     ClimbPlot.Clear();
     ClimbPlot.Refresh();
     turnPerformanceUserControl.ResetControl();
 }
        private void DrawAircraftData(string ac, plotType pType, bool wep)
        {
            PerformanceBL bl = new PerformanceBL(ac);

            ArrayList heights = new ArrayList();
            ArrayList rates   = new ArrayList();

            if (pType == plotType.Speed)
            {
                bl.GetSpeedData(heights, rates, wep);
            }
            if (pType == plotType.Climb)
            {
                bl.GetClimbData(heights, rates, wep);
            }

            if ((heights.Count == 0) || (rates.Count == 0))
            {
                return;
            }

            _numPlots++;

            LinePlot lp = new LinePlot();

            lp.OrdinateData = heights;
            lp.AbscissaData = rates;

            lp.Color        = Registry.Instance.AircraftColours.GetAircraftColour(ac);
            lp.Pen.Width    = 2.0f;
            lp.ShowInLegend = true;

            if (wep)
            {
                lp.Label         = string.Concat(ac, " - ", "WEP");
                lp.Pen.DashStyle = System.Drawing.Drawing2D.DashStyle.Dot;
            }
            else
            {
                lp.Label         = string.Concat(ac, " - ", "MIL");
                lp.Pen.DashStyle = System.Drawing.Drawing2D.DashStyle.Solid;
            }

            if (pType == plotType.Speed)
            {
                SpeedPlot.Add(lp);
            }
            if (pType == plotType.Climb)
            {
                ClimbPlot.Add(lp);
            }
        }