void t4_Tick(object sender, EventArgs e)
        {
            Random r = new Random();

            for (int i = 0; i < linii.Count; i++)
            {
                SolidBrush bb1 = new SolidBrush(Color.FromArgb(r.Next(0, 255), r.Next(0, 255), r.Next(0, 255)));
                Color      c1  = bb1.Color;

                LinearGradientBrush br = new LinearGradientBrush(new Point(linii[i].x, linii[i].y), new Point(linii[i].x + linii[i].dolzina, linii[i].y + 5), c1, Color.Gray);
                linii[i].boja = br;
            }
            for (int i = 0; i < linii2.Count; i++)
            {
                SolidBrush bb1 = new SolidBrush(Color.FromArgb(r.Next(0, 255), r.Next(0, 255), r.Next(0, 255)));
                Color      c1  = bb1.Color;

                LinearGradientBrush br = new LinearGradientBrush(new Point(linii2[i].x, linii2[i].y), new Point(linii2[i].x + linii2[i].dolzina, linii2[i].y + 5), c1, Color.Gray);
                linii2[i].boja = br;
            }
            if (Program.f == 0)
            {
                if (progressBar1.Value == 16 && covece.y == 0)
                {
                    t5.Start();
                }
                if (progressBar1.Value == 0)
                {
                    t1.Stop();
                    t2.Stop();
                    t3.Stop();
                    t4.Stop();
                    DialogResult rez = new DialogResult();
                    rez = MessageBox.Show("Prodolzi na sledno nivo?", "Sledno nivo?", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
                    if (rez == DialogResult.Yes)
                    {
                        Program.Poeni = Program.Poeni + Poeni;
                        this.Visible  = false;

                        Igra2 nivo2 = new Igra2();
                        nivo2.ShowDialog();
                    }
                    else
                    {
                        MessageBox.Show("Osvoivte: " + Poeni + " poeni!");

                        this.Close();
                    }
                }
                if (progressBar1.Value != 0)
                {
                    if (!this.IsAccessible)
                    {
                        progressBar1.Value--;
                    }
                }
            }
        }
        private void button4_Click(object sender, EventArgs e)
        {
            bool flag = false;
            if (tbIme.Text == "")
            {
                MessageBox.Show("Vnesete Ime!");
                return;
            }
            if (cmbLevel.SelectedIndex == -1)
            {
                MessageBox.Show("Izberete level!");
                return;
            }
            foreach (Player p in players)
            {
                if (p.Nickname == tbIme.Text)
                {
                    flag = true;
                    p.Poeni = 0;
                }
            }
            if (flag == false)
            {
                Player p = new Player(tbIme.Text, 0);
                players.Add(p);
            }

            //this.Hide();
            if (cmbLevel.SelectedIndex == 0)
            {
                Program.Poeni = 0;
                Igra igra = new Igra();
                if (igra.ShowDialog() == DialogResult.Cancel)
                {

                }
            }

            if (cmbLevel.SelectedIndex == 1)
            {
                Program.Poeni = 0;
                Igraa1 igra1 = new Igraa1();
                if (igra1.ShowDialog() == DialogResult.Cancel)
                {

                }
            }

            if (cmbLevel.SelectedIndex == 2)
            {
                Program.Poeni = 0;
                Igra2 igra2 = new Igra2();
                if (igra2.ShowDialog() == DialogResult.Cancel)
                {

                }
            }
            for (int i = 0; i < players.Count; i++)
            {
                if (players[i].Nickname == tbIme.Text)
                {
                    players[i].Poeni = Program.Poeni;
                }
            }
        }
        void t4_Tick(object sender, EventArgs e)
        {
            Random r = new Random();
            for (int i = 0; i < linii.Count; i++)
            {
                SolidBrush bb1 = new SolidBrush(Color.FromArgb(r.Next(0, 255), r.Next(0, 255), r.Next(0, 255)));
                Color c1 = bb1.Color;

                LinearGradientBrush br = new LinearGradientBrush(new Point(linii[i].x, linii[i].y), new Point(linii[i].x + linii[i].dolzina, linii[i].y + 5), c1, Color.Gray);
                linii[i].boja = br;

            }
            for (int i = 0; i < linii2.Count; i++)
            {
                SolidBrush bb1 = new SolidBrush(Color.FromArgb(r.Next(0, 255), r.Next(0, 255), r.Next(0, 255)));
                Color c1 = bb1.Color;

                LinearGradientBrush br = new LinearGradientBrush(new Point(linii2[i].x, linii2[i].y), new Point(linii2[i].x + linii2[i].dolzina, linii2[i].y + 5), c1, Color.Gray);
                linii2[i].boja = br;

            }
            if (Program.f == 0)
            {

                if (progressBar1.Value == 16 && covece.y == 0)
                {
                    t5.Start();
                }
                if (progressBar1.Value == 0)
                {
                    t1.Stop();
                    t2.Stop();
                    t3.Stop();
                    t4.Stop();
                    DialogResult rez = new DialogResult();
                    rez = MessageBox.Show("Prodolzi na sledno nivo?", "Sledno nivo?", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
                    if (rez == DialogResult.Yes)
                    {
                        Program.Poeni = Program.Poeni + Poeni;
                        this.Visible = false;

                        Igra2 nivo2 = new Igra2();
                        nivo2.ShowDialog();

                    }
                    else
                    {
                        MessageBox.Show("Osvoivte: " + Poeni + " poeni!");

                        this.Close();
                    }
                }
                if (progressBar1.Value != 0)
                {
                    if (!this.IsAccessible)
                        progressBar1.Value--;
                }
            }
        }
        private void button4_Click(object sender, EventArgs e)
        {
            bool flag = false;

            if (tbIme.Text == "")
            {
                MessageBox.Show("Vnesete Ime!");
                return;
            }
            if (cmbLevel.SelectedIndex == -1)
            {
                MessageBox.Show("Izberete level!");
                return;
            }
            foreach (Player p in players)
            {
                if (p.Nickname == tbIme.Text)
                {
                    flag    = true;
                    p.Poeni = 0;
                }
            }
            if (flag == false)
            {
                Player p = new Player(tbIme.Text, 0);
                players.Add(p);
            }

            //this.Hide();
            if (cmbLevel.SelectedIndex == 0)
            {
                Program.Poeni = 0;
                Igra igra = new Igra();
                if (igra.ShowDialog() == DialogResult.Cancel)
                {
                }
            }

            if (cmbLevel.SelectedIndex == 1)
            {
                Program.Poeni = 0;
                Igraa1 igra1 = new Igraa1();
                if (igra1.ShowDialog() == DialogResult.Cancel)
                {
                }
            }

            if (cmbLevel.SelectedIndex == 2)
            {
                Program.Poeni = 0;
                Igra2 igra2 = new Igra2();
                if (igra2.ShowDialog() == DialogResult.Cancel)
                {
                }
            }
            for (int i = 0; i < players.Count; i++)
            {
                if (players[i].Nickname == tbIme.Text)
                {
                    players[i].Poeni = Program.Poeni;
                }
            }
        }