Exemple #1
0
        public WebcamSourceProvider(ILocalizationProvider Loc,
                                    IIconSet Icons,
                                    WebcamModel WebcamModel)
        {
            _loc         = Loc;
            _webcamModel = WebcamModel;
            Icon         = Icons.Webcam;
            Source       = new WebcamVideoItem(WebcamModel);

            Loc.LanguageChanged += L => RaisePropertyChanged(nameof(Name));
        }
 public void Dispose()
 {
     _webcamModel?.ReleaseCapture();
     _webcamModel   = null;
     _webcamCapture = null;
 }
        public WebcamVideoItem(WebcamModel WebcamModel)
        {
            _webcamModel = WebcamModel;

            _webcamModel.PropertyChanged += (S, E) => RaisePropertyChanged(nameof(Name));
        }
 public WebcamImageProvider(WebcamModel WebcamModel)
 {
     _webcamModel   = WebcamModel;
     _webcamCapture = WebcamModel.InitCapture();
 }
 public WebcamImageProvider(WebcamModel WebcamModel)
 {
     _webcamModel = WebcamModel;
 }