public RadarHandler(PictureBox _radarPictureBox)
 {
     radarPictureBox = _radarPictureBox;
     radar = new Radar(radarPictureBox.Width);
     StaticRadarItems = new SquareRadarItem[3];
     for (int i = 0; i < 3; i++)
     {
         StaticRadarItems[i] = new SquareRadarItem(i, 8, 0, 0);
     }
     StaticRadarItems[2].Azimuth = 45;
     StaticRadarItems[0].Azimuth = 315;
     DynamicRadarItems = new CircleRadarItem[9];
     for (int i = 0; i < 9; i++)
     {
         DynamicRadarItems[i] = new CircleRadarItem(i + 5, 8, 0, 0);
     }
     DynamicRadarItems[0].Azimuth = 360 - 90;
     DynamicRadarItems[1].Azimuth = 360 - 67;
     DynamicRadarItems[2].Azimuth = 360 - 45;
     DynamicRadarItems[3].Azimuth = 360 - 22;
     DynamicRadarItems[4].Azimuth = 0;
     DynamicRadarItems[5].Azimuth = 22;
     DynamicRadarItems[6].Azimuth = 45;
     DynamicRadarItems[7].Azimuth = 67;
     DynamicRadarItems[8].Azimuth = 90;
     RearRadarItem = new TriangleRadarItem(4, 8, 180, 0);
     radar.ImageUpdate += new ImageUpdateHandler(_radar_ImageUpdate);
     radar.DrawScanInterval = 60;
     radar.DrawScanLine = true;
 }
 //Radar
 //----------------------------------------------------------------------
 private void radarTabPage_Show()
 {
     if (!this.topTabControl.Controls.Contains(this.radarTabPage)) this.topTabControl.TabPages.Add(this.radarTabPage);
     radar = new Radar(radarPictureBox.Width);
     StaticRadarItems = new SquareRadarItem[3];
     for (int i = 0; i < 3; i++)
     {
         StaticRadarItems[i] = new SquareRadarItem(i, 8, 0, 0);
     }
     StaticRadarItems[2].Azimuth = 45;
     StaticRadarItems[0].Azimuth = 315;
     DynamicRadarItems = new CircleRadarItem[9];
     for (int i = 0; i < 9; i++)
     {
         DynamicRadarItems[i] = new CircleRadarItem(i + 5, 8, 0, 0);
     }
     DynamicRadarItems[0].Azimuth = 360 - 90;
     DynamicRadarItems[1].Azimuth = 360 - 67;
     DynamicRadarItems[2].Azimuth = 360 - 45;
     DynamicRadarItems[3].Azimuth = 360 - 22;
     DynamicRadarItems[4].Azimuth = 0;
     DynamicRadarItems[5].Azimuth = 22;
     DynamicRadarItems[6].Azimuth = 45;
     DynamicRadarItems[7].Azimuth = 67;
     DynamicRadarItems[8].Azimuth = 90;
     RearRadarItem = new TriangleRadarItem(4, 8, 180, 0);
     radar.ImageUpdate += new ImageUpdateHandler(_radar_ImageUpdate);
     radar.DrawScanInterval = 60;
     radar.DrawScanLine = true;
 }