public ConferenceManager()
 {
     //TODO: Load from File/WebService/Other repository
     ConferenceInfo = new MonkeySpace.Core.ConferenceInfo {
             DisplayName ="CodeCampSDQ",
             StartDate=new DateTime(2012,12,1,8,30,0),
         EndDate = new DateTime(2012,12,1,18,0,0),
         SessionsDataUrl = "http://codecampsdq.com/data/2012/",  // Low Tech Web Services
         ImagesUrl = "http://codecampsdq.com/data/2012/images/speakers/"
     };
 }
Example #2
0
        /// <summary>
        /// Creates and adds a few ItemViewModel objects into the Items collection.
        /// </summary>
        public void LoadData()
        {
            #region load data

            var ci = new ConferenceInfo {
                Code = "monkeyspace13",
                DisplayLocation = "Chicago",
                DisplayName = "MonkeySpace"
                                                        ,
                StartDate = new DateTime(2013, 07, 22),
                EndDate = new DateTime(2013, 07, 25)
            };
            App.ViewModel.ConfItem = ci;

            // HACK: would prefer to get this data from the server
            var ml = new List<MapLocation>();
            ml.Add(new MapLocation() {
                        Title = "MonkeySpace",
                        Subtitle = "NERD Center",
                        Location = new Core.Point(-71.08363940740965, 42.36100515974955)
            });
            MapLocations = ml;

            var json = App.LoadText(@"monkeyspace12\sessions.json");
            MonkeySpace.Core.ConferenceManager.LoadFromString(json);

            Speakers = MonkeySpace.Core.ConferenceManager.Speakers.Values.ToList();
            NotifyPropertyChanged("Speakers");

            Sessions = MonkeySpace.Core.ConferenceManager.Sessions.Values.ToList();
            NotifyPropertyChanged("Sessions");

            string currentConf="";
            if (IsolatedStorageSettings.ApplicationSettings.Contains("LastConferenceCode")) {
                currentConf = (string)IsolatedStorageSettings.ApplicationSettings["LastConferenceCode"];
                //
                // ######   Load 'favorites'   ####
                //
                FavoriteSessions = App.Load<ObservableCollection<MonkeySpace.Core.Session>>(currentConf + "\\Favorites.xml");

                LoadWhatsOn(currentConf);
            }
            #endregion

            this.IsDataLoaded = true;
        }
Example #3
0
        void DeserializeConferenceFile(string xmlPath)
        {
            ConfItem = new ConferenceInfo () {
                StartDate = new DateTime(2012,10, 17),
                EndDate = new DateTime(2012,10,19),
            };

            //
            // ######   Load 'favorites'   ####
            //
            var favPath = Path.Combine(docFolder, this.CurrentConferenceCode);
            favPath = Path.Combine(favPath, "Favorites.xml");

            LoadWhatsOn(CurrentConferenceCode);

            IsDataLoaded = true;
        }