private async void btnDodajGrad_Click(object sender, EventArgs e) { var frm = new frmGradoviDetalji(0, _id); if (frm.ShowDialog() == DialogResult.OK) { await UcitajDetalje(); } }
private async void dgvGradovi_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { var id = int.Parse(dgvGradovi.SelectedRows[0].Cells[0].Value.ToString()); var Grad = await _serviceGradovi.GetById <Model.Gradovi>(id); var frm = new frmGradoviDetalji(id, Grad.DrzavaId); if (frm.ShowDialog() == DialogResult.OK) { await UcitajDetalje(); } }