public MainViewModel() { if (!IsolatedStorageSettings.ApplicationSettings.Contains("notFirstTime")) { DoFirstTimeJobs(); IsolatedStorageSettings.ApplicationSettings["notFirstTime"] = true; } weatherDataManager = WeatherDataManager.GetInstance(); this.RecentItems = new ObservableCollection<ResponseItem>(); this.Places = new ObservableCollection<Place>(); this.helpTopics = HelpTopic.CreateHelpList(); }
public static WeatherDataManager GetInstance() { if(_weatherDataManager == null) _weatherDataManager = new WeatherDataManager(); return _weatherDataManager; }