Ejemplo n.º 1
0
        public LoadImageCommand(CapturePictureViewModel viewModel)
        {
            Safeguard.EnsureNotNull("viewModel", viewModel);

            this.viewModel = viewModel;
            this.viewModel.PropertyChanged += OnViewModelPropertyChanged;
        }
Ejemplo n.º 2
0
        public ToggleCaptureCommand(CapturePictureViewModel viewModel)
        {
            Safeguard.EnsureNotNull("viewModel", viewModel);

            this.viewModel = viewModel;
            /// TODO: Must get IDisopsable.
            this.viewModel.PropertyChanged += OnViewModelPropertyChanged;
        }
        public EmbeddPictureCommand(CapturePictureViewModel capturePictureView, MainWindowViewModel mainWindow)
        {
            Safeguard.EnsureNotNull("capturePictureView", capturePictureView);
            Safeguard.EnsureNotNull("mainWindow", mainWindow);

            this.capturePictureView  = capturePictureView;
            this.mainWindowViewModel = mainWindow;

            this.capturePictureView.PropertyChanged += this.OnViewModelPropertyChanged;
        }