public LoadImageCommand(CapturePictureViewModel viewModel) { Safeguard.EnsureNotNull("viewModel", viewModel); this.viewModel = viewModel; this.viewModel.PropertyChanged += OnViewModelPropertyChanged; }
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; }