private int GetRandomImage() { string imageName = ImagePicker.GetRandomImage(ViewModel.CurrentGem.author); int result = (int)typeof(Resource.Drawable).GetField(imageName.ToLower()).GetValue(null); return(result); }
private string GetRandomImage() { string result = ImagePicker.GetRandomImage(ViewModel.CurrentGem.author); return("Images/" + result + ".jpg"); }