public NewsItemFullPage() { InitializeComponent(); _m = Marker.GetInstance(); _cf = CategoryConfigA.Config; _sizeConfig = SizeConfig2; //_isSubscribed = false; if (UserConfig.FontSize == FontSizes.xsmall) _sizeConfig = SizeConfig0; else if (UserConfig.FontSize == FontSizes.small) _sizeConfig = SizeConfig1; else if (UserConfig.FontSize == FontSizes.medium) _sizeConfig = SizeConfig2; else if (UserConfig.FontSize == FontSizes.large) _sizeConfig = SizeConfig3; else if (UserConfig.FontSize == FontSizes.xlarge) _sizeConfig = SizeConfig4; var adsTimer = new DispatcherTimer { Interval = TimeSpan.FromSeconds(1) }; adsTimer.Tick += (sender, args) => { InvokeAppendContent(); adsTimer.Stop(); }; adsTimer.Start(); GeneralHelper.SetupTutorial(6, Tutorial); }
public static Marker GetInstance() { if (_instance == null) { _instance = new Marker(); } tempNewsItemsList = new List<DataModel.NewsItem>(); return _instance; }
public NewsItemPage() { InitializeComponent(); _isToChannelTaped = false; _isFavourTaped = false; _isReadLaterTaped = false; _isSubscribed = false; _isPage2Template2ndItemTaped = false; _m = Marker.GetInstance(); _cf = CategoryConfigA.Config; _categoryName = "default"; }
public NewsListPage() { InitializeComponent(); _isToChannelTaped = false; _isFavourTaped = false; _isReadLaterTaped = false; _m = Marker.GetInstance(); _cf = CategoryConfigA.Config; _categoryName = "default"; _channelName = "default"; defaultPhoto = _cf["default"]["photo_default"]; _isSubscribed = false; _isHomeGiant = null; NumOfDownloadCompleted = 0; IsDownloadCompleted = new int[20]; for (var i = 0; i < 20; i++) { IsDownloadCompleted[i] = 0; } GiantDownloadCompleted = 0; _ctgyNewsItems = new ObservableCollection<DataModel.UIContextItem>(); NewsListBox.ItemsSource = _ctgyNewsItems; var adsTimer = new DispatcherTimer { Interval = TimeSpan.FromSeconds(1) }; adsTimer.Tick += (sender, args) => { InvokeAppendContent(); adsTimer.Stop(); }; adsTimer.Start(); GeneralHelper.SetupTutorial(4, Tutorial); }