/// <summary> /// Izvršava se prilikom korištenja gumba InOrder. /// </summary> private void btnInOrder_Click(object sender, EventArgs e) { string text = txtText.Text; List <string> separated = new List <string>(); separated = text.Split(new Char[] { ' ', '\n' }).ToList(); frmStart start = new frmStart(separated, "inOrder"); start.ShowDialog(); }
/// <summary> /// Starta formu za brojanje brzine pisanja. /// </summary> private void btnStart_Click(object sender, EventArgs e) { if (english) { frmStart start = new frmStart(); start.ShowDialog(); } else { bool hrvatski = true; frmStart start = new frmStart(hrvatski); start.ShowDialog(); } }
/// <summary> /// Izvršava se prilikom korištenja gumba Add. /// </summary> private void btnAdd_Click(object sender, EventArgs e) { string text = txtText.Text; List <string> separated = new List <string>(); separated = text.Split(new Char[] { ' ', '\n' }).ToList(); //pregledat ako je koji prazan unutar liste da ne dođe unutra. if (separated.Count < 220) { for (int i = 0; i < 220; i++) { separated.Add(separated[i]); if (separated.Count >= 220) { break; } } } frmStart start = new frmStart(separated, "random"); start.ShowDialog(); }
/// <summary> /// Teška razina. /// </summary> private void btnHard_Click(object sender, EventArgs e) { frmStart start = new frmStart("hard"); start.ShowDialog(); }
/// <summary> /// Srednja razina. /// </summary> private void btnMedium_Click(object sender, EventArgs e) { frmStart start = new frmStart("medium"); start.ShowDialog(); }
/// <summary> /// Lagana razina. /// </summary> private void btnEasy_Click(object sender, EventArgs e) { frmStart start = new frmStart("easy"); start.ShowDialog(); }