private void Button_HandHistory_Click(object sender, RoutedEventArgs e) { var pokerHand = UcReplayerTable_Main.PokerHand; if (pokerHand != null) { WindowMessage.Show(pokerHand.HandHistory, "Hand History", WindowMessageButtons.OK, WindowMessageImage.None, this, WindowStartupLocation.CenterOwner, WindowMessageTextType.TextBox); } }