public void SetPushpinDataSource(DataModel.PushpinDataStructure pushPinDataSource)
 {
     PushPinDataSource = pushPinDataSource;
     if (pushPinDataSource.FilePath == null) return;
     if (pushPinDataSource.FilePath.EndsWith(".pdf") || pushPinDataSource.FilePath.EndsWith(".xls") || pushPinDataSource.FilePath.EndsWith(".xlsx") || pushPinDataSource.FilePath.EndsWith(".one") ||
         pushPinDataSource.FilePath.EndsWith(".ppt") || pushPinDataSource.FilePath.EndsWith(".pptx") || pushPinDataSource.FilePath.EndsWith(".doc") || pushPinDataSource.FilePath.EndsWith(".docx"))
         Image_LargePushpin.Source = ImageFromRelativePath(this, "/Assets/Pushpin/pushpinfile.png");
     else if (pushPinDataSource.FilePath.EndsWith(".mp3") || pushPinDataSource.FilePath.EndsWith(".wmv"))
         Image_LargePushpin.Source = ImageFromRelativePath(this, "/Assets/Pushpin/Music note SH.png");
     else if (pushPinDataSource.FilePath.EndsWith(".mp4") ||
              pushPinDataSource.FilePath.EndsWith(".rmvb") || pushPinDataSource.FilePath.EndsWith(".avi") || pushPinDataSource.FilePath.EndsWith(".mkv"))
         Image_LargePushpin.Source = ImageFromRelativePath(this, "/Assets/Pushpin/logo_video.png");
     else if (pushPinDataSource.FilePath.EndsWith(".jpg") || pushPinDataSource.FilePath.EndsWith(".png"))
         Image_LargePushpin.Source = ImageFromRelativePath(this, "/Assets/Pushpin/logo_04.png");
     else
         Image_LargePushpin.Source = ImageFromRelativePath(this, "/Assets/Images/bigpushpin.png");
 }
 private async void AlbumCollectionView_Loaded(object sender, RoutedEventArgs e)
 {
     FromMapToCollectioin data = _parameter;
     pushpinData = data.pushpin;
     if (pushpinData != null)
     {
         fillBackgroundImage(this.pushpinData.BackgroundPhotoPath);
         pageTitle.Text = pushpinData.AlbumCollectionName;
         await LoadData();
         if (AllCollectionByDateGroups.Count == 0)
             BottomAppBar.IsOpen = true;
     }
     if (data.slectedAlbum != null && AllCollectionByDateGroups.Count > 0) focusToSelectedAlbum(data);
     Constants.StopLoadingAnimation(MainGrid);
     itemGridView.Visibility = Windows.UI.Xaml.Visibility.Visible;
     initializeDispatchertTimer();
 }
 private DataModel.PushpinDataStructure addNewPushpinConfigureDataOfNewPushpin(DiyPushpin diyPushpin)
 {
     diyPushpin.Tapped += diyPushpin_Tapped;
     DataModel.PushpinDataStructure pds = new DataModel.PushpinDataStructure()
     {
         Latitude = diyPushpin.latitude,
         Longitude = diyPushpin.longitude,
         Id = DateTime.Now.ToString() + diyPushpin.latitude.ToString()
         //PushpinType = _tapStateEnum
     };
     return pds;
 }