private void BtnDeleteSelected_Click(object sender, EventArgs e) { for (int i = LstBoxHistory.SelectedItems.Count - 1; i >= 0; i--) { LstBoxHistory.Items.Remove(LstBoxHistory.SelectedItems[i]); } BtnStartStop.Focus(); }
private void BtnLockScramble_Click(object sender, EventArgs e) { if (LockBtn) { LockBtn = false; BtnLockScramble.Text = "Lock"; } else { LockBtn = true; BtnLockScramble.Text = "Unlock"; } BtnStartStop.Focus(); }
private void BtnStartStop_Click(object sender, EventArgs e) { if (Started) { Started = false; stopWatch.Stop(); timer.Stop(); TimeSpan ts = stopWatch.Elapsed; Timer_Tick(); AddHistoryList(GetFormatedTime(stopWatch.Elapsed)); UpdateScrambleAlg(LockBtn); } else { Started = true; stopWatch.Reset(); stopWatch.Start(); timer.Tick += new EventHandler(Timer_Tick); timer.Start(); } BtnStartStop.Focus(); }
private void BtnNewScramble_Click(object sender, EventArgs e) { UpdateScrambleAlg(LockBtn); BtnStartStop.Focus(); }