Пример #1
0
        /// <summary>
        /// Invoked when this page is about to be displayed in a Frame.
        /// </summary>
        /// <param name="e">Event data that describes how this page was reached.  The Parameter
        /// property is typically used to configure the page.</param>
        protected async override void OnNavigatedTo(NavigationEventArgs e)
        {
            var ds = new SampleDataSource();
            var speakers = await ds.GetSpeakerAsync();

            SpeakerListBox.ItemsSource = speakers;
        }
Пример #2
0
        static void Main(string[] args)
        {
            var ds = new SampleDataSource();

            ds.InitializeDatabase();
            ds.FillWithSampleData();

            Console.WriteLine("Done populating the database");
            Console.Read();
        }