コード例 #1
0
        private string GetTagsAvailable()
        {
            List <string> listTagsAvailable = ApptReminderRules.GetAvailableAggTags(ApptReminderRuleCur.TypeCur);

            if (tabTemplates.SelectedTab == tabAutoReplyTemplate)
            {
                listTagsAvailable.RemoveAll(x => x.In(ListTagsExludedFromAutoReply));
            }
            return(Lan.g(this, "Use the following replacement tags to customize messages: ")
                   + string.Join(", ", listTagsAvailable));
        }
コード例 #2
0
 private void FormApptReminderRuleEdit_Load(object sender, EventArgs e)
 {
     textSMSAggShared.Text       = PIn.String(ApptReminderRuleCur.TemplateSMSAggShared);
     textSMSAggPerAppt.Text      = PIn.String(ApptReminderRuleCur.TemplateSMSAggPerAppt);
     textEmailSubjAggShared.Text = PIn.String(ApptReminderRuleCur.TemplateEmailSubjAggShared);
     textEmailAggShared.Text     = PIn.String(ApptReminderRuleCur.TemplateEmailAggShared);
     textEmailAggPerAppt.Text    = PIn.String(ApptReminderRuleCur.TemplateEmailAggPerAppt);
     labelTags.Text = Lan.g(this, "Use the following replacement tags to customize messages: ")
                      + string.Join(", ", ApptReminderRules.GetAvailableAggTags(ApptReminderRuleCur.TypeCur));
     if (ApptReminderRuleCur.TypeCur == ApptReminderType.PatientPortalInvite)
     {
         textSMSAggShared.Enabled   = false;
         textSMSAggPerAppt.Enabled  = false;
         labelEmailAggPerAppt.Text += "  " + Lans.g(this, "Replaces the [Credentials] tag.");
     }
 }