예제 #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_Previous_Click(object sender, RoutedEventArgs e)
 {
     UcReplayerTable_Main.UndoCommand();
 }