private void button8_Click(object sender, EventArgs e)
 {
     PlotPanel.Dispose();
     CreateNewPlotPanel();
     PlotPanel.Size = new Size(0, 0);
     dc.ChartType   = DrawChart.ChartTypeEnum.XYColor;
     PlotPanel.Invalidate();
 }
 private void button9_Click(object sender, EventArgs e)
 {
     PlotPanel.Dispose();
     CreateNewPlotPanel();
     dc.ChartType = DrawChart.ChartTypeEnum.Waterfall;
     Prepare3DAxis();
     PlotPanel.Invalidate();
 }
        private void tbAzimuth_KeyUp(object sender, KeyEventArgs e)
        {
            int  value;
            bool result = Int32.TryParse(tbAzimuth.Text, out value);

            if (result)
            {
                if (value <= -180)
                {
                    value = -180;
                }
                else if (value >= 180)
                {
                    value = 180;
                }
                trkAzimuth.Value = value;
            }
            PlotPanel.Invalidate();
        }
        private void tbElevation_KeyUp(object sender, KeyEventArgs e)
        {
            int  value;
            bool result = Int32.TryParse(tbElevation.Text, out value);

            if (result)
            {
                if (value <= -90)
                {
                    value = -90;
                }
                else if (value >= 90)
                {
                    value = 90;
                }
                trkElevation.Value = value;
            }
            PlotPanel.Invalidate();
        }
 private void trkAzimuth_Scroll(object sender, EventArgs e)
 {
     tbAzimuth.Text = trkAzimuth.Value.ToString();
     PlotPanel.Invalidate();
 }
 private void trkElevation_Scroll(object sender, EventArgs e)
 {
     tbElevation.Text = trkElevation.Value.ToString();
     PlotPanel.Invalidate();
 }