Ejemplo n.º 1
0
        private async void SendInterval_Tick(object sender, EventArgs e)
        {
            if (cc == linescount)
            {
                SendInterval.Stop();
                cc = -1;
                EnableAndDisable(true);
            }
            else
            {
                cc++;
                if (cc != linescount)
                {
                    lbltypingwords.Text = lines[cc].ToString();

                    await SendWords();
                }
                else
                {
                    SendInterval.Stop();
                    cc = -1;
                    EnableAndDisable(true);
                }
            }
        }
Ejemplo n.º 2
0
 private void stopButton_Click(object sender, EventArgs e)
 {
     SendInterval.Stop();
     EnableAndDisable(true);
 }