示例#1
0
 private void Button_PasteFromClipboard_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         UcReplayerTable_Main.ReplayHand(PokerHand.Parse(Methods.GetClipboardText()));
     }
     catch
     {
         UcReplayerTable_Main.ReplayHand(null);
     }
 }
示例#2
0
        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;
        }