コード例 #1
0
        public WindowReplayer()
        {
            InitializeComponent();

            KeyDown += (sender, args) =>
            {
                if (args.Key == Key.Left)
                {
                    UcReplayerTable_Main.UndoCommand();
                }
                if (args.Key == Key.Right)
                {
                    UcReplayerTable_Main.DoCommand();
                }
                if (args.Key == Key.Up)
                {
                    //UcReplayerTable_Main.ReplayHand(PokerHand.FromHandHistory(Clipboard.GetText()));
                }
            };

            MouseDown += (sender, args) =>
            {
                Keyboard.ClearFocus();
            };

            Closing += (sender, args) =>
            {
                if (!IsClosing)
                {
                    Visibility  = Visibility.Hidden;
                    args.Cancel = true;
                }
            };
        }
コード例 #2
0
 private void Button_Next_Click(object sender, RoutedEventArgs e)
 {
     UcReplayerTable_Main.DoCommand();
 }