コード例 #1
0
		private void OpenGameDetails(GameStats selected)
		{
			if(selected == null)
				return;
			if(selected.HasReplayFile && !Keyboard.IsKeyDown(Key.LeftCtrl)) //hold ctrl to open old game viewer
				ReplayReader.LaunchReplayViewer(selected.ReplayFile);
			else if(Config.Instance.StatsInWindow)
			{
				Core.Windows.StatsWindow.GameDetailsFlyout.SetGame(selected);
				Core.Windows.StatsWindow.FlyoutGameDetails.Header = selected.ToString();
				Core.Windows.StatsWindow.FlyoutGameDetails.IsOpen = true;
			}
			else
			{
				Core.MainWindow.GameDetailsFlyout.SetGame(selected);
				Core.MainWindow.FlyoutGameDetails.Header = selected.ToString();
				Core.MainWindow.FlyoutGameDetails.IsOpen = true;
			}
		}
コード例 #2
0
 public DiscardGameDialog(GameStats game)
 {
     InitializeComponent();
     LblGameInfo.Content = game.ToString();
 }