private void btnSacuvaj_Click(object sender, EventArgs e) { if (!validacija()) { return; } String ime = txbIme.Text; String prezime = txbPrezime.Text; int clan = 0; if (chBClanRodSaveta.Checked == true) { clan = 1; } StarateljBasic s = new StarateljBasic(ime, prezime, clan); string poruka = "Da li zelite da dodate staratelja?"; string title = "Pitanje"; MessageBoxButtons buttons = MessageBoxButtons.OKCancel; DialogResult result = MessageBox.Show(poruka, title, buttons); if (result == DialogResult.OK) { DTOManager.dodajStaratelja(ucenik, s); } else { } this.popuniPodacima(); txbIme.ResetText(); txbPrezime.ResetText(); }