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); } } }
private void stopButton_Click(object sender, EventArgs e) { SendInterval.Stop(); EnableAndDisable(true); }