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