예제 #1
0
        public App()
        {
            InitializeComponent();

            var model = new GreatQuoteViewModel(QuoteManager.Load().First());

            MainPage = new NavigationPage(new QuoteDetailPage(model));
        }
예제 #2
0
        public App()
        {
            InitializeComponent();

            var quote = QuoteManager.Load().First();

            MainPage = new NavigationPage(new QuoteDetailPage(quote));
        }
예제 #3
0
        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)));
        }
예제 #4
0
        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));
        }
예제 #5
0
 public QuoteListPage()
 {
     BindingContext = new List <GreatQuote>(QuoteManager.Load());
     InitializeComponent();
 }