Beispiel #1
0
        private void btnDodaj_Click(object sender, EventArgs e)
        {
            Registracija reg = new Registracija();

            if (reg.ShowDialog() == DialogResult.OK)
            {
                UcitajSveStudente();
            }
        }
Beispiel #2
0
 private void btnDetalji_Click(object sender, EventArgs e)
 {
     MessageBox.Show(dgvStudenti.RowCount.ToString());
     if (dgvStudenti.RowCount > 0)
     {
         Student      s   = dgvStudenti.SelectedRows[0].DataBoundItem as Student;
         Registracija reg = new Registracija(s);
         if (reg.ShowDialog() == DialogResult.OK)
         {
             MessageBox.Show("Edit uspjesan.");
             UcitajSveStudente();
         }
     }
 }