Example #1
0
        /// <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();
        }
Example #2
0
 /// <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();
     }
 }
Example #3
0
        /// <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();
        }
Example #4
0
        /// <summary>
        /// Teška razina.
        /// </summary>
        private void btnHard_Click(object sender, EventArgs e)
        {
            frmStart start = new frmStart("hard");

            start.ShowDialog();
        }
Example #5
0
        /// <summary>
        /// Srednja razina.
        /// </summary>
        private void btnMedium_Click(object sender, EventArgs e)
        {
            frmStart start = new frmStart("medium");

            start.ShowDialog();
        }
Example #6
0
        /// <summary>
        /// Lagana razina.
        /// </summary>
        private void btnEasy_Click(object sender, EventArgs e)
        {
            frmStart start = new frmStart("easy");

            start.ShowDialog();
        }