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)); }
public Pictures() { jPGPicture = new JPGPicture(); BindingContext = new PicturesViewModel(new PageService()); InitializeComponent(); }