private void SendNewSpeaker(object sender, RoutedEventArgs e)
        {
            DateTime speakerDate;

            if (!DateTime.TryParse(SpeakerDateTime.Text, out speakerDate))
            {
                ShowDialog("Date is not in the correct format. Please adjust and send form data again");
                return;
            }

            var speakers = new SpeakerSampleData();
            var speaker  = new Speaker
            {
                Name            = SpeakerName.Text,
                Info            = SpeakerInfo.Text,
                TalkTitle       = SpeakerTalkTitle.Text,
                TalkDescription = SpeakerTalkDescription.Text,
                PictureUrl      = Path.Combine(PhotoBlobUtils.BaseUri, SpeakerPictureUrl.Text),
                TalkDate        = speakerDate
            };

            speakers.InsertSpeaker(speaker);
            AddSpeakerForm.IsOpen         = false;
            EventListScroller.ItemsSource = Speakers;
            //UpdateBadge(Speakers.Count);
        }
        private void AddSampleData(object sender, RoutedEventArgs e)
        {
            if (App.MobileService.CurrentUser == null)
            {
                ShowDialog("Please login before inserting into the database");
                return;
            }
            var speakers = new SpeakerSampleData();

            speakers.InsertSpeakerSampleData();
            EventListScroller.ItemsSource = Speakers;
        }
        private void SendNewSpeaker(object sender, RoutedEventArgs e)
        {
            DateTime speakerDate;
            if(!DateTime.TryParse(SpeakerDateTime.Text, out speakerDate))
            {
                ShowDialog("Date is not in the correct format. Please adjust and send form data again");
                return;
            }

            var speakers = new SpeakerSampleData();
            var speaker = new Speaker
                              {
                                  Name = SpeakerName.Text,
                                  Info = SpeakerInfo.Text,
                                  TalkTitle = SpeakerTalkTitle.Text,
                                  TalkDescription = SpeakerTalkDescription.Text,
                                  PictureUrl = Path.Combine(PhotoBlobUtils.BaseUri,SpeakerPictureUrl.Text),
                                  TalkDate = speakerDate
                              };
            speakers.InsertSpeaker(speaker);
            AddSpeakerForm.IsOpen = false;
            EventListScroller.ItemsSource = Speakers;
            //UpdateBadge(Speakers.Count);
        }
 private void AddSampleData(object sender, RoutedEventArgs e)
 {
     if (App.MobileService.CurrentUser == null)
     {
         ShowDialog("Please login before inserting into the database");
         return;
     }
     var speakers = new SpeakerSampleData();
     speakers.InsertSpeakerSampleData();
     EventListScroller.ItemsSource = Speakers;
 }