Exemplo n.º 1
0
 /// <summary>
 /// Proceed sanity check of inserted values.
 /// </summary>
 /// <param name="errors">Found errors.</param>
 /// <param name="warnings">Found warnings.</param>
 public void SanityCheck(ref List <string> errors, ref List <string> warnings)
 {
     Date.SanityCheck(ref errors, ref warnings);
     Wind.SanityCheck(ref errors, ref warnings);
     Visibility.SanityCheck(ref errors, ref warnings);
     if (Phenomens != null)
     {
         if (Phenomens.IsEmpty())
         {
             warnings.Add("Phenomens are used but are empty.");
         }
         Phenomens.SanityCheck(ref errors, ref warnings);
     }
     if (Clouds != null)
     {
         if (Clouds.IsEmpty())
         {
             warnings.Add("Clouds are used but are empty.");
         }
         Clouds.SanityCheck(ref errors, ref warnings);
     }
     Pressure.SanityCheck(ref errors, ref warnings);
     if (RePhenomens != null)
     {
         if (RePhenomens.IsEmpty())
         {
             warnings.Add("Re-phenomens are used but are empty.");
         }
         RePhenomens.SanityCheck(ref errors, ref warnings);
     }
     if (WindShears != null)
     {
         if (WindShears.IsEmpty())
         {
             warnings.Add("Windshears are used but are empty.");
         }
         WindShears.SanityCheck(ref errors, ref warnings);
     }
     if (RunwayConditions != null)
     {
         if (RunwayConditions.IsEmpty())
         {
             warnings.Add("Runway conditions are used but are empty.");
         }
         RunwayConditions.SanityCheck(ref errors, ref warnings);
     }
     if (Trend != null)
     {
         Trend.SanityCheck(ref errors, ref warnings);
     }
 }