Ejemplo n.º 1
0
        private void ultraButtonDelete_Click(object sender, EventArgs e)
        {
            ultraGridPatientList.Rows[this.ultraGridPatientList.ActiveRow.Index].Delete(true);

            try
            {
                objHospDB = new HospitalDB();
                PatientInfo    objPatientInfo    = new PatientInfo(objHospDB);
                PatientInfoRow objPatientInfoRow = new PatientInfoRow();
                objPatientInfoRow.Id = Convert.ToInt32(id);


                objPatientInfo.Delete(objPatientInfoRow);


                MessageBox.Show(":deleted");
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }