/// <summary>
 /// Constructor
 /// </summary>
 /// <param name="_page">WorldclockPage</param>
 public WorldclockInfo(WorldclockPage _page)
 {
     CityRecordList = new ObservableCollection <CityRecord>();
     userLocations  = new LocationObservableCollection();
     page           = _page;
     LoadItemsList();
     TimezoneUtility.UpdateLocalTime();
 }
示例#2
0
        /// <summary>
        /// Gets WorldclockPage
        /// </summary>
        /// <returns>
        /// Return instance of WorldclockPage
        /// </returns>
        public static WorldclockPage GetInstance()
        {
            if (worldclockPage == null)
            {
                worldclockPage = new WorldclockPage();
            }

            return(worldclockPage);
        }