Пример #1
0
 private void NoviClick(object sender, EventArgs e)
 {
     using (var forma = new frmZaposlenikEditor(this, btnNovi.Text))
     {
         forma.ShowDialog();
     }
 }
Пример #2
0
 private void UrediClick(object sender, EventArgs e)
 {
     using (var forma = new frmZaposlenikEditor(this, btnUredi.Text))
     {
         forma.Id      = int.Parse(dataGridView1.CurrentRow.Cells[0].Value.ToString());
         forma.SpolId  = dataGridView1.CurrentRow.Cells[1].Value.ToString();
         forma.Ime     = dataGridView1.CurrentRow.Cells[2].Value.ToString();
         forma.Prezime = dataGridView1.CurrentRow.Cells[3].Value.ToString();
         forma.Adresa  = dataGridView1.CurrentRow.Cells[4].Value.ToString();
         forma.Oib     = dataGridView1.CurrentRow.Cells[5].Value.ToString();
         forma.ShowDialog();
     }
 }