Example #1
0
 public void AddWebcam(Webcam webcam)
 {
     lock (this)
     {
         webcams.Add(webcam);
     }
 }
Example #2
0
 public bool RemoveWebcam(Webcam webcam)
 {
     lock (this)
     {
         if (webcams.Contains(webcam))
         {
             webcams.Remove(webcam);
             return true;
         }
         else
             return false;
     }
 }