Пример #1
0
 public void RemoveWarning(Warning warning)
 {
     try
     {
         Warnings.Remove(warning);
         WarningsChanged?.Invoke(this);
     }
     catch (Exception e)
     {
         Debug.WriteLine(e);
     }
 }
Пример #2
0
 public void AddWarning(Warning newWarning)
 {
     try
     {
         Warnings.Add(newWarning);
         WarningsChanged?.Invoke(this);
     }
     catch (Exception e)
     {
         Debug.WriteLine(e);
     }
 }