Пример #1
0
 public PicturesViewModel(IPageService pageService)
 {
     this.pageService       = pageService;
     this.jPGPicture        = new JPGPicture();
     GetPicturesCommand     = new Command(GetPictures);
     SelectedPictureCommand = new Command <MyImages>((img) => PictureSelected(img));
     SaveToMemoryCommand    = new Command <MyImages>((img) => SaveToMemory(img));
     DeletePictureCommand   = new Command <MyImages>((img) => DeletePicture(img));
 }
Пример #2
0
 public Pictures()
 {
     jPGPicture     = new JPGPicture();
     BindingContext = new PicturesViewModel(new PageService());
     InitializeComponent();
 }