コード例 #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();
 }
コード例 #2
0
ファイル: Scene3D.cs プロジェクト: wolfoerster/WFTools3D
 /// <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();
 }