Beispiel #1
0
 /// <summary>
 /// Show/hide airplanes or ADI.
 /// </summary>
 public void ToggleHelperModels()
 {
     if (airplanes == null)
     {
         airplanes = new Airplane[2];
         Models.Add(airplanes[0] = new Airplane());
         Models.Add(airplanes[1] = new Airplane());
     }
     else
     {
         if (adi == null)
         {
             adi = new ADI();
             Models.Add(adi);
         }
         else
         {
             RemoveHelperModels();
         }
     }
     UpdateHelperModels();
 }
Beispiel #2
0
 /// <summary>
 /// Show/hide airplanes or ADI.
 /// </summary>
 public void ToggleHelperModels()
 {
     if (airplanes == null)
     {
         airplanes = new Airplane[2];
         Models.Add(airplanes[0] = new Airplane());
         Models.Add(airplanes[1] = new Airplane());
     }
     else
     {
         if (adi == null)
         {
             adi = new ADI();
             Models.Add(adi);
         }
         else
         {
             RemoveHelperModels();
         }
     }
     UpdateHelperModels();
 }