private void CardEntered(object sender, KeyEventArgs e) { if (e.Key == Key.Enter) { PIBtn.PerformClick(); } }
public Inactive_State() { InitializeComponent(); Count = 0; MaxCount = MaxCount.GiveCount(); PIReel = PIReel.Paths(); DispatcherTimer Timer = new DispatcherTimer(); Timer.Interval = TimeSpan.FromSeconds(3); Timer.Tick += dispatcherTimer_Tick; Timer.Start(); PIBtn.Focus(); }