Exemplo n.º 1
0
 private void NoviClick(object sender, EventArgs e)
 {
     using (var forma = new TipEditor(this, btnNovi.Text))
     {
         forma.ShowDialog();
     }
 }
Exemplo n.º 2
0
 private void UrediClick(object sender, EventArgs e)
 {
     using (var forma = new TipEditor(this, btnUredi.Text))
     {
         forma.Id    = int.Parse(dataGridView1.CurrentRow.Cells[0].Value.ToString());
         forma.Naziv = dataGridView1.CurrentRow.Cells[1].Value.ToString();
         forma.Boja  = dataGridView1.CurrentRow.Cells[2].Value.ToString();
         forma.ShowDialog();
     }
 }