예제 #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;
 }
예제 #2
0
 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();
 }