Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
        private void BtnLockScramble_Click(object sender, EventArgs e)
        {
            if (LockBtn)
            {
                LockBtn = false;
                BtnLockScramble.Text = "Lock";
            }
            else
            {
                LockBtn = true;
                BtnLockScramble.Text = "Unlock";
            }

            BtnStartStop.Focus();
        }
Ejemplo n.º 3
0
        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();
        }
Ejemplo n.º 4
0
        private void BtnNewScramble_Click(object sender, EventArgs e)
        {
            UpdateScrambleAlg(LockBtn);

            BtnStartStop.Focus();
        }