예제 #1
0
 private void NoviClick(object sender, EventArgs e)
 {
     using (var forma = new frmDodaciEditor(this, btnNovi.Text))
     {
         forma.ShowDialog();
     }
 }
예제 #2
0
 private void UrediClick(object sender, EventArgs e)
 {
     using (var forma = new frmDodaciEditor(this, btnUredi.Text))
     {
         forma.Id          = int.Parse(dataGridView1.CurrentRow.Cells[0].Value.ToString());
         forma.Naziv       = dataGridView1.CurrentRow.Cells[1].Value.ToString();
         forma.BrojDana    = dataGridView1.CurrentRow.Cells[2].Value.ToString();
         forma.GodinaPrava = dataGridView1.CurrentRow.Cells[3].Value.ToString();
         forma.ShowDialog();
     }
 }