private void SetImageDataSource(IBitmapDataSource dataSource)
 {
     this.Clear();
     this.activeDataSources.Add(dataSource);
     this.videoControl.SetImageSource(dataSource);
     dataSource.Start();
 }
Exemple #2
0
 private void SetImageDataSource(IBitmapDataSource dataSource)
 {
     this.Clear();
     this.activeDataSources.Add(dataSource);
     this.videoControl.SetImageSource(dataSource);
     dataSource.Start();
 }
Exemple #3
0
 public void SetImageSource(IBitmapDataSource imageSource)
 {
     if (this.imageSource != null)
     {
         imageSource.NewDataAvailable -= new NewDataHandler <Bitmap>(imageSource_NewImageAvailable);
     }
     this.imageSource              = imageSource;
     imageSource.NewDataAvailable += new NewDataHandler <Bitmap>(imageSource_NewImageAvailable);
 }
Exemple #4
0
 public void SetImageSource(IBitmapDataSource imageSource)
 {
     if (this.imageSource != null) 
     {
         imageSource.NewDataAvailable -= new NewDataHandler<Bitmap>(imageSource_NewImageAvailable);    
     }
     this.imageSource = imageSource;
     imageSource.NewDataAvailable += new NewDataHandler<Bitmap>(imageSource_NewImageAvailable);
 }
Exemple #5
0
 public VideoControl(IBitmapDataSource imageSource)
     : this()
 {
     this.SetImageSource(imageSource);
 }
Exemple #6
0
 public VideoControl(IBitmapDataSource imageSource)
     : this()
 {
     this.SetImageSource(imageSource);
 }