コード例 #1
0
 private void FormCommunications_Load(object sender, EventArgs e)
 {
     ReferralCur = Referrals.GetReferralForPat(PatCur.PatNum);
     if (ReferralCur == null)
     {
         butLetterSimpleRef.Enabled = false;
         butLabelRef.Enabled        = false;
         butEmailRef.Enabled        = false;
     }
     else
     {
         textReferral.Text = Referrals.GetNameFL(ReferralCur.ReferralNum);
         if (ReferralCur.EMail == "")
         {
             butEmailRef.Enabled = false;
         }
     }
     if (PatCur.Email == "")
     {
         butEmail.Enabled = false;
     }
 }