Exemple #1
0
 private void butOK_Click(object sender, System.EventArgs e)
 {
     RxDefCur.Drug    = textDrug.Text;
     RxDefCur.Sig     = textSig.Text;
     RxDefCur.Disp    = textDisp.Text;
     RxDefCur.Refills = textRefills.Text;
     RxDefCur.Notes   = textNotes.Text;
     RxDefs.Update(RxDefCur);
     DialogResult = DialogResult.OK;
 }
Exemple #2
0
 private void butOK_Click(object sender, System.EventArgs e)
 {
     //RxCui is set when butRxNormSelect is clicked.
     RxDefCur.Drug         = textDrug.Text;
     RxDefCur.Sig          = textSig.Text;
     RxDefCur.Disp         = textDisp.Text;
     RxDefCur.Refills      = textRefills.Text;
     RxDefCur.Notes        = textNotes.Text;
     RxDefCur.IsControlled = checkControlled.Checked;
     RxDefs.Update(RxDefCur);
     DialogResult = DialogResult.OK;
 }
Exemple #3
0
 private void butOK_Click(object sender, System.EventArgs e)
 {
     //RxCui is set when butRxNormSelect is clicked.
     if (CultureInfo.CurrentCulture.Name.EndsWith("US") && RxDefCur.RxCui == 0)           //United States
     {
         if (!MsgBox.Show(this, true, "Warning: RxNorm was not picked.  "
                          + "RxNorm uniquely identifies drugs in the United States and helps you keep your medications organized.  "
                          + "RxNorm is used to send information to and from eRx if you are using or plan to use eRx.\r\n"
                          + "Click OK to continue without an RxNorm, or click Cancel to stay in this window."))
         {
             return;
         }
     }
     RxDefCur.Drug           = textDrug.Text;
     RxDefCur.Sig            = textSig.Text;
     RxDefCur.Disp           = textDisp.Text;
     RxDefCur.Refills        = textRefills.Text;
     RxDefCur.Notes          = textNotes.Text;
     RxDefCur.IsControlled   = checkControlled.Checked;
     RxDefCur.IsProcRequired = checkProcRequired.Checked;
     RxDefs.Update(RxDefCur);
     DialogResult = DialogResult.OK;
 }