Esempio n. 1
0
        private void btnDodavanje_Click(object sender, EventArgs e)
        {
            Control         activeForm      = this.FindForm();
            Point           location        = new Point(((Form1)activeForm).Location.X + 2, ((Form1)activeForm).Location.Y + 25);
            DodavanjeTerena dodavanjeTerena = new DodavanjeTerena();

            //Background back = Background.getInstance;
            back = new Background();
            back.Show();
            back.Location = location;
            dodavanjeTerena.ShowDialog();
        }
Esempio n. 2
0
        private void btnIzmena_Click(object sender, EventArgs e)
        {
            Control activeForm = this.FindForm();
            Point   location   = new Point(((Form1)activeForm).Location.X + 2, ((Form1)activeForm).Location.Y + 25);

            back = new Background();
            back.Show();
            back.Location = location;

            string temp = dgvTereni.SelectedCells[4].Value.ToString();

            string[] sportovi = temp.Split(',');
            for (int i = 0; i < sportovi.Length; i++)
            {
                if (sportovi[i].StartsWith(" "))
                {
                    sportovi[i] = sportovi[i].Substring(1, sportovi[i].Length - 1);
                }
                System.Diagnostics.Debug.WriteLine(sportovi[i]);
            }
            DodavanjeTerena dodavanjeTerena = new DodavanjeTerena(new Guid(dgvTereni.SelectedCells[0].Value.ToString()), dgvTereni.SelectedCells[1].Value.ToString(), dgvTereni.SelectedCells[2].Value.ToString(), dgvTereni.SelectedCells[3].Value.ToString(), dgvTereni.SelectedCells[5].Value.ToString(), sportovi, dgvTereni.SelectedCells[6].Value.ToString(), dgvTereni.SelectedCells[7].Value.ToString());

            dodavanjeTerena.ShowDialog();
        }
Esempio n. 3
0
        private void btnDodavanje_Click(object sender, EventArgs e)
        {
            DodavanjeTerena dodavanjeTerena = new DodavanjeTerena();

            dodavanjeTerena.ShowDialog();
        }