예제 #1
0
 private void DoAddPicture()
 {
     // do action
     // TODO - put this back to TakePicture
     _pictureChooserTask.ChoosePictureFromLibrary(400, 95, OnPicture, () => { /* nothing to */ });
     //_pictureChooserTask.TakePicture(400, 95, OnPicture, () => { /* nothing to */ });
 }
예제 #2
0
        public static Task <Stream> ChoosePictureFromLibraryAsync(this IMvxPictureChooserTask chooser, int maxPixelDimension, int percentQuality)
        {
            var task = new TaskCompletionSource <Stream>();

            chooser.ChoosePictureFromLibrary(maxPixelDimension, percentQuality, (stream, name) => task.SetResult(stream), () => task.SetResult(null));
            return(task.Task);
        }
예제 #3
0
 private void DoChooseComprovante()
 {
     _pictureChooserTask.ChoosePictureFromLibrary(400, 95, OnPictureComprovante, () => { });
 }
예제 #4
0
 public void AddPicture()
 {
     _pictureChooserTask.ChoosePictureFromLibrary(_maxPixel, _qualityPercent, OnPicture, () => { });
 }
예제 #5
0
 private void DoChooseRg()
 {
     _pictureChooserTask.ChoosePictureFromLibrary(400, 95, OnPictureRg, () => { });
 }
 private void ChoosePicture()
 {
     _pictureChooserTask.ChoosePictureFromLibrary(400, 95, OnPicture, () => { Mvx.Trace("Picture cancelled by user!"); });
 }
예제 #7
0
 private void SelectPhoto()
 {
     _photoTask.ChoosePictureFromLibrary(300, 80, PhotoAction, () => { });
 }
예제 #8
0
 public void ChoosePicture()
 {
     mPictureChooserTask.ChoosePictureFromLibrary(PictureSize, 95, OnPictureAvailable, OnChoosePictureCancelled);
 }
예제 #9
0
 private void SelectPictureFromLibrary()
 {
     _pictureChooserTask.ChoosePictureFromLibrary(400, 95, OnPictureTaken, () => { });
 }
 private void DoChoosePicture()
 {
     _pictureChooserTask.ChoosePictureFromLibrary(128, 60, OnPicture, OnPictureCancelled);
 }