private void btnNoviRestoran_Click(object sender, EventArgs e) { RestoraniEdit f = new RestoraniEdit(); if (f.ShowDialog() == DialogResult.OK) { LoadData(true); } }
private void btnUrediRestoran_Click(object sender, EventArgs e) { if (dgvRestorani.CurrentRow == null) { return; } RestoraniEdit f = new RestoraniEdit((Restorani_Result)dgvRestorani.CurrentRow.DataBoundItem); if (f.ShowDialog() == DialogResult.OK) { LoadData(true); } }