public void RemoveWarning(Warning warning) { try { Warnings.Remove(warning); WarningsChanged?.Invoke(this); } catch (Exception e) { Debug.WriteLine(e); } }
public void AddWarning(Warning newWarning) { try { Warnings.Add(newWarning); WarningsChanged?.Invoke(this); } catch (Exception e) { Debug.WriteLine(e); } }