Esempio n. 1
0
        private void LoadBookmark(Chronozoom.Entities.Tour tour)
        {
            var bookmarks = DataEnvironmentAccess.AnInstance.GetITourBookmarkView(tour.ID);
            var bmarks    = new List <Chronozoom.Entities.BookMark>();

            foreach (var bookmark in bookmarks)
            {
                Chronozoom.Entities.BookMark b = new Chronozoom.Entities.BookMark(bookmark.ID,
                                                                                  bookmark.Name,
                                                                                  (!string.IsNullOrEmpty(bookmark.URL) && bookmark.URL.IndexOf('#') > 0)  ? bookmark.URL.Substring(bookmark.URL.IndexOf('#') + 1): string.Empty,
                                                                                  bookmark.LapseTime,
                                                                                  bookmark.Description
                                                                                  );
                bmarks.Add(b);
            }
            tour.bookmarks = bmarks;
        }
Esempio n. 2
0
 private void LoadBookmark(Chronozoom.Entities.Tour tour)
 {
     var bookmarks = DataEnvironmentAccess.AnInstance.GetITourBookmarkView(tour.ID);
     var bmarks = new List<Chronozoom.Entities.BookMark>();
     foreach (var bookmark in bookmarks)
     {
         Chronozoom.Entities.BookMark b = new Chronozoom.Entities.BookMark(bookmark.ID,
             bookmark.Name,
             (!string.IsNullOrEmpty(bookmark.URL) && bookmark.URL.IndexOf('#') >0)  ? bookmark.URL.Substring(bookmark.URL.IndexOf('#')+1): string.Empty,
             bookmark.LapseTime,
             bookmark.Description
             );
         bmarks.Add(b);
     }
     tour.bookmarks = bmarks;
 }