Пример #1
0
 private void ViewBest()
 {
     if (WinViewBest == null)
     {
         var vm = new PersonRecommendsViewModel();
         vm.EnableControl = false;
         WinViewBest = new PersonRecommendsWindow();
         WinViewBest.DataContext = vm;
         WinViewBest.Title = "最牛逼人的推荐";
         WinViewBest.Loaded += (o, e) => vm.LoadBest();
         WinViewBest.Closed += (o, e) => WinViewBest = null;
     }
     WinViewBest.Activate();
     WinViewBest.Show();
 }
Пример #2
0
 /// <summary>
 /// 查看尚未出结果的比赛
 /// </summary>
 private void UnknownRecommends()
 {
     if (WinGameUnknown == null)
     {
         var vm = new PersonRecommendsViewModel();
         WinGameUnknown = new PersonRecommendsWindow();
         WinGameUnknown.DataContext = vm;
         WinGameUnknown.Title = "未知推荐结果的推荐";
         WinGameUnknown.Loaded += (o, e) => vm.LoadUnknown();
         WinGameUnknown.Closed += (o, e) => WinGameUnknown = null;
     }
     WinGameUnknown.Activate();
     WinGameUnknown.Show();
 }
Пример #3
0
 /// <summary>
 /// 展示擂台参赛纪录
 /// </summary>
 private void GameShow()
 {
     if (WinGameShow == null)
     {
         var vm = new PersonRecommendsViewModel();
         WinGameShow = new PersonRecommendsWindow();
         WinGameShow.DataContext = vm;
         WinGameShow.Title = "未完场推荐";
         WinGameShow.Loaded += (o, e) => vm.LoadUnFinished();
         WinGameShow.Closed += (o, e) => WinGameShow = null;
     }
     WinGameShow.Activate();
     WinGameShow.Show();
 }
Пример #4
0
 /// <summary>
 /// 查看自定义查询的比赛
 /// </summary>
 /// <returns></returns>
 private void SelfDefinedRecommends()
 {
     if (WinGameSelfDefined == null)
     {
         var vm = new PersonRecommendsViewModel();
         vm.SelectedProfit = -10000.0f;
         vm.UseSelfDefined = true;
         vm.CheckBoxPreferMostIsChecked = false;
         WinGameSelfDefined = new PersonRecommendsWindow();
         WinGameSelfDefined.DataContext = vm;
         WinGameSelfDefined.Title = "自定义查询";
         WinGameSelfDefined.Loaded += (o, e) => vm.LoadSelfDefined();
         WinGameSelfDefined.Closed += (o, e) => WinGameSelfDefined = null;
     }
     WinGameSelfDefined.Activate();
     WinGameSelfDefined.Show();
 }
Пример #5
0
 private void GameLatest200()
 {
     if (WinGameLatest200 == null)
     {
         var vm = new PersonRecommendsViewModel();
         WinGameLatest200 = new PersonRecommendsWindow();
         WinGameLatest200.DataContext = vm;
         WinGameLatest200.Title = "最近200场推荐";
         WinGameLatest200.Loaded += (o, e) => vm.Load(200);
         WinGameLatest200.Closed += (o, e) => WinGameLatest200 = null;
     }
     WinGameLatest200.Activate();
     WinGameLatest200.Show();
 }