示例#1
0
 public void RemoveThroughputWarning(ThroughputWarning warning)
 {
     if ((ThroughputWarnings != null) &&
         (ThroughputWarnings.Contains(warning)))
     {
         ThroughputWarnings.Remove(warning);
     }
 }
示例#2
0
 public void AddThroughputWarning(ThroughputWarning warning)
 {
     if (ThroughputWarnings == null)
     {
         ThroughputWarnings = new List <ThroughputWarning>();
     }
     if (!ThroughputWarnings.Contains(warning))
     {
         ThroughputWarnings.Add(warning);
     }
 }