Esempio n. 1
0
        private void butFormulary_Click(object sender, EventArgs e)
        {
            FormFormularies FormF = new FormFormularies();

            FormF.IsSelectionMode = true;
            FormF.ShowDialog();
            Cursor = Cursors.WaitCursor;
            if (FormF.DialogResult != DialogResult.OK)
            {
                Cursor = Cursors.Default;
                return;
            }
            List <FormularyMed> ListMeds = FormularyMeds.GetMedsForFormulary(FormF.SelectedFormularyNum);
            bool medIsInFormulary        = false;

            for (int i = 0; i < ListMeds.Count; i++)
            {
                if (ListMeds[i].MedicationNum == MedicationPatCur.MedicationNum)
                {
                    medIsInFormulary = true;
                }
            }
            Cursor = Cursors.Default;
            if (medIsInFormulary)
            {
                MsgBox.Show(this, "This medication is in the selected formulary.");
            }
            else
            {
                MsgBox.Show(this, "This medication is not in the selected forumulary.");
            }
        }
Esempio n. 2
0
        private void butFormularies_Click(object sender, EventArgs e)
        {
            FormFormularies FormE = new FormFormularies();

            FormE.ShowDialog();
        }
Esempio n. 3
0
 private void butFormulary_Click(object sender,EventArgs e)
 {
     FormFormularies FormF=new FormFormularies();
     FormF.IsSelectionMode=true;
     FormF.ShowDialog();
     Cursor=Cursors.WaitCursor;
     if(FormF.DialogResult!=DialogResult.OK) {
         Cursor=Cursors.Default;
         return;
     }
     List<FormularyMed> ListMeds=FormularyMeds.GetMedsForFormulary(FormF.SelectedFormularyNum);
     bool medIsInFormulary=false;
     for(int i=0;i<ListMeds.Count;i++) {
         if(ListMeds[i].MedicationNum==MedicationPatCur.MedicationNum) {
             medIsInFormulary=true;
         }
     }
     Cursor=Cursors.Default;
     if(medIsInFormulary){
         MsgBox.Show(this,"This medication is in the selected formulary.");
     }
     else {
         MsgBox.Show(this,"This medication is not in the selected forumulary.");
     }
 }
Esempio n. 4
0
 private void butFormularies_Click(object sender,EventArgs e)
 {
     FormFormularies FormE=new FormFormularies();
     FormE.ShowDialog();
 }