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);
            }
        }
        private void RefreshTurnPlots()
        {
            lblMessage.Text = "Turn data obtained at aircraft's maximum power setting";
            lblMessage.Show();

            turnPerformanceUserControl.Title = "Turn Performance";
            foreach (int i in AircraftList.CheckedIndices)
            {
                string        acName = AircraftList.Items[i].ToString();
                PerformanceBL bl     = new PerformanceBL(acName);

                TurnData noFlapsData;
                TurnData fullFlapsData;
                bl.GetAllTurnData(out noFlapsData, out fullFlapsData);

                BuildNewCustomTurnPerformanceGraph(acName, noFlapsData, fullFlapsData);
            }
        }
        private void RefreshTurnPlots()
        {
            lblMessage.Text = "Turn data obtained at aircraft's maximum power setting";
            lblMessage.Show();

            turnPerformanceUserControl.Title = "Turn Performance";
            foreach (int i in AircraftList.CheckedIndices)
            {
                string acName = AircraftList.Items[i].ToString();
                PerformanceBL bl = new PerformanceBL(acName);

                TurnData noFlapsData;
                TurnData fullFlapsData;
                bl.GetAllTurnData(out noFlapsData, out fullFlapsData);

                BuildNewCustomTurnPerformanceGraph(acName, noFlapsData, fullFlapsData);
            }
        }
        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);
        }