Exemple #1
0
 public static VipTitle GetVipTitle(string value)
 {
     var vipTitle = new VipTitle();
     vipTitle.Title = GetMatch(VipSourceHelper.ThunderVipTitleRegex, value, (data) => VipSourceHelper.GetFilter(data, VipSourceHelper.ThunderVipTitleFilter));
     vipTitle.Url = GetMatch(VipSourceHelper.ThunderVipUrlRegex, value, (data) => VipSourceHelper.GetFilter(data, VipSourceHelper.ThunderVipUrlFilter));
     vipTitle.AfterTime = GetMatch(VipSourceHelper.ThunderVipTitleTimeRegex, value, (data) => VipSourceHelper.GetFilter(data, VipSourceHelper.ThunderVipUrlFilter));
     return vipTitle;
 }
 public ThunderVipViewModel()
 {
     VipTitle = new VipTitle();
 VipUsers = new ObservableCollection<VipUser>();
     VipTitle.Title = "迅雷VIP";
     VipTitles = new ObservableCollection<VipTitle>();
     VipTitles.Add(new VipTitle() { Title = VipSourceHelper.LoadingString });
     DispatcherTimer timer = new DispatcherTimer();
 timer.Interval = TimeSpan.FromSeconds(1);
     timer.Tick += Timer_Tick;
      timer.Start();
 }