private void btnAzuriraj_Click(object sender, EventArgs e) { string poruka = "Da li zelite da izvrsite izmene?"; string title = "Pitanje"; MessageBoxButtons buttons = MessageBoxButtons.OKCancel; DialogResult result = MessageBox.Show(poruka, title, buttons); if (result == DialogResult.OK) { this.angazman.DatumOd = datumOd.Value; if (chbDatumDo.Checked == false) { this.angazman.DatumDo = datumDo.Value; } DTOManager.azurirajAngazman(this.angazman); MessageBox.Show("Uspesno izvrseno azuriranje!"); this.Close(); } else { } }