public CameraCaptureCommand(object parameter) { _captureTask = new CameraCaptureTask(); _captureTask.Completed += CaptureTaskOnCompleted; _viewModel = (MainViewModel) parameter; }
public PhotoChooserCommand(object parameter) { _photoChooserTask = new PhotoChooserTask(); _photoChooserTask.Completed += PhotoChooserTaskOnCompleted; _viewModel = (MainViewModel) parameter; }
public AsyncPictureDecoderExtension(MainViewModel viewModel, PhotoResult photoResult) { _viewModel = viewModel; InitializeDecoder(photoResult); }
public static void AddToResultCollection(Result result, MainViewModel viewModel) { viewModel.Results.Add(result); }