Ejemplo n.º 1
0
 // Add new JokeOfTheDay to list
 private void OnJOTDJokeAdded(JokeOfTheDayViewModel viewModel, Joke joke)
 {
     Jokes.Add(new JokeViewModel(joke));
     SortJokesDesc();
 }
        /// <summary>
        /// Constructor
        /// </summary>
        public JokeOfTheDayPage()
        {
            InitializeComponent();

            ViewModel = new JokeOfTheDayViewModel(new SQLiteJokeStore(new SQLiteDb()), new PageService());
        }