Beispiel #1
0
 private void btnDodajIgraca_Click(object sender, EventArgs e)
 {
     Igraci.FrmDodajIgraca fromaDodajIgraca = new Igraci.FrmDodajIgraca();
     this.Hide();
     fromaDodajIgraca.ShowDialog();
     this.Show();
     PrikaziIgrace();
 }
Beispiel #2
0
        private void btnUrediIgraca_Click(object sender, EventArgs e)
        {
            Igrac odabraniIgrac = dgvPopisIgraca.CurrentRow.DataBoundItem as Igrac;

            if (odabraniIgrac != null)
            {
                Igraci.FrmDodajIgraca formaDodajIgraca = new Igraci.FrmDodajIgraca(odabraniIgrac);
                this.Hide();
                formaDodajIgraca.ShowDialog();
                this.Show();
                PrikaziIgrace();
            }
        }