コード例 #1
0
        public void Page_Load(Object o, EventArgs e)
        {
            Settings = new CFController().GetUsersFeedViewSettings(UserID);

            if ((FeedChannel)Settings.CurrentChannelType == FeedChannel.Area)
            {
                CurrentCountry = (Nation)CFDataCache.GetAreaTag(Settings.AreaID.Value).CountryID;
            }
            else if ((FeedChannel)Settings.CurrentChannelType == FeedChannel.Place)
            {
                CurrentCountry = (Nation)CFDataCache.GetPlace(Settings.PlaceID.Value).CountryID;
            }
            else
            {
                CurrentCountry = Nation.Afghanistan;
            }
        }