Ejemplo n.º 1
0
        private void butAddAllergy_Click(object sender, EventArgs e)
        {
            FormAllergySetup FormAS = new FormAllergySetup();

            FormAS.IsSelectionMode = true;
            FormAS.ShowDialog();
            if (FormAS.DialogResult != DialogResult.OK)
            {
                return;
            }
            RxAlert alert = new RxAlert();

            alert.AllergyDefNum = FormAS.SelectedAllergyDefNum;
            alert.RxDefNum      = RxDefCur.RxDefNum;
            RxAlerts.Insert(alert);
            FillAlerts();
        }
Ejemplo n.º 2
0
        private void butAddMedication_Click(object sender, EventArgs e)
        {
            FormMedications FormMED = new FormMedications();

            FormMED.IsSelectionMode = true;
            FormMED.ShowDialog();
            if (FormMED.DialogResult != DialogResult.OK)
            {
                return;
            }
            RxAlert alert = new RxAlert();

            alert.MedicationNum = FormMED.SelectedMedicationNum;
            alert.RxDefNum      = RxDefCur.RxDefNum;
            RxAlerts.Insert(alert);
            FillAlerts();
        }
Ejemplo n.º 3
0
        private void butAddProblem_Click(object sender, EventArgs e)
        {
            FormDiseaseDefs FormD = new FormDiseaseDefs();

            FormD.IsSelectionMode = true;
            FormD.ShowDialog();
            if (FormD.DialogResult != DialogResult.OK)
            {
                return;
            }
            RxAlert alert = new RxAlert();

            alert.DiseaseDefNum = FormD.SelectedDiseaseDefNum;
            alert.RxDefNum      = RxDefCur.RxDefNum;
            RxAlerts.Insert(alert);
            FillAlerts();
        }
Ejemplo n.º 4
0
        private void butAddProblem_Click(object sender, EventArgs e)
        {
            FormDiseaseDefs FormD = new FormDiseaseDefs();

            FormD.IsSelectionMode = true;
            FormD.IsMultiSelect   = true;
            FormD.ShowDialog();
            if (FormD.DialogResult != DialogResult.OK)
            {
                return;
            }
            for (int i = 0; i < FormD.ListSelectedDiseaseDefs.Count; i++)
            {
                RxAlert alert = new RxAlert();
                alert.DiseaseDefNum = FormD.ListSelectedDiseaseDefs[i].DiseaseDefNum;
                alert.RxDefNum      = RxDefCur.RxDefNum;
                RxAlerts.Insert(alert);
            }
            FillAlerts();
        }