private void btnDelete_Click(object sender, EventArgs e) { bool isDeletedOk = rnServices.DeletePostavka(Id); if (isDeletedOk) { this.Close(); } else { MessageBox.Show("Postiji vezani Radni Nalog"); } }