private void Button_PasteFromClipboard_Click(object sender, RoutedEventArgs e) { try { UcReplayerTable_Main.ReplayHand(PokerHand.Parse(Methods.GetClipboardText())); } catch { UcReplayerTable_Main.ReplayHand(null); } }
public void ReplayHand(string HandHistoryStr) { Visibility = Visibility.Visible; var pokerData = PokerData.FromText(HandHistoryStr); if (pokerData.PokerHands.Any()) { UcReplayerTable_Main.ReplayHand(pokerData.PokerHands.First()); } Topmost = true; Topmost = false; }