public App() { InitializeComponent(); var model = new GreatQuoteViewModel(QuoteManager.Load().First()); MainPage = new NavigationPage(new QuoteDetailPage(model)); }
public App() { InitializeComponent(); var quote = QuoteManager.Load().First(); MainPage = new NavigationPage(new QuoteDetailPage(quote)); }
public App() { InitializeComponent(); var quotes = QuoteManager.Load().ToList(); var quote = quotes[new Random().Next(0, quotes.Count - 1)]; MainPage = new NavigationPage(new QuoteDetailPage(new GreatQuoteViewModel(quote))); }
public App() { InitializeComponent(); var list = QuoteManager.Load().ToList(); var quote = list[new Random().Next(list.Count)]; var viewModel = new GreatQuoteViewModel(quote); MainPage = new NavigationPage(new QuoteDetailPage(viewModel)); }
public QuoteListPage() { BindingContext = new List <GreatQuote>(QuoteManager.Load()); InitializeComponent(); }