Пример #1
0
 public void Add(ObserverForm of)
 {
     lock (locker)
     {
         _observerForms.Add(of);
     }
 }
Пример #2
0
 public void Remove(ObserverForm of)
 {
     lock (locker)
     {
         if (_observerForms.Contains(of))
         {
             _observerForms.Remove(of);
         }
     }
 }