Esempio n. 1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            patientID   = cbPatientID.Text;
            admissionID = cbAdmRecID.Text;
            tV          = rbTV.Checked;
            pN          = rbPhone.Checked;
            semiP       = rbSemiPrivate.Checked;
            Private     = rbPrivate.Checked;
            string sMsg = "";

            try
            {
                sMsg = extra.AddData(admissionID, patientID, tV, pN, semiP, Private);
            }
            catch
            {
                sMsg = "Error saving data." + "\n\n" + e.ToString();
            }
            finally
            {
                MessageBox.Show(sMsg, "Add Patients Amentites", MessageBoxButtons.OK);
            }
        }