예제 #1
0
        public PromptInformation createLanguagePromptInfo(string language)
        {
            PromptInformation promptInfo = new PromptInformation(this.ctgNumber, language);

            Prompts.Add(promptInfo);
            return(promptInfo);
        }
예제 #2
0
        private string generateLanguageSection(string language, PromptInformation promptInfo)
        {
            string languageSection = "";

            languageSection = languageSection + generateInnerSimpleField("<br><b>" + language + "</b>", "");
            languageSection = languageSection + generateInnerSimpleField("Setup", promptInfo.SetupFee.ToString("C"));
            languageSection = languageSection + generateInnerSimpleField("Prompt Fee", promptInfo.PromptFee.ToString("C"));
            languageSection = languageSection + generateInnerSimpleField("Transfer", promptInfo.TransferFee.ToString("C"));
            languageSection = languageSection + generateInnerSimpleField("CD", promptInfo.CDFee.ToString("C"));
            if (promptInfo.TranslationFeeMinimum > 0)
            {
                languageSection = languageSection + generateInnerSimpleField("Translation", promptInfo.getTranslationString());
            }
            languageSection = languageSection + generateInnerSimpleField("Total " + language, "<b>" + promptInfo.getTotalFee().ToString("C") + "</b>");
            return(languageSection);
        }
 private string generateLanguageSection(string language, PromptInformation promptInfo)
 {
     string languageSection = "";
     languageSection = languageSection + generateInnerSimpleField("<br><b>" + language + "</b>", "");
     languageSection = languageSection + generateInnerSimpleField("Setup", promptInfo.SetupFee.ToString("C"));
     languageSection = languageSection + generateInnerSimpleField("Prompt Fee", promptInfo.PromptFee.ToString("C"));
     languageSection = languageSection + generateInnerSimpleField("Transfer", promptInfo.TransferFee.ToString("C"));
     languageSection = languageSection + generateInnerSimpleField("CD", promptInfo.CDFee.ToString("C"));
     if (promptInfo.TranslationFeeMinimum > 0)
     {
         languageSection = languageSection + generateInnerSimpleField("Translation", promptInfo.getTranslationString());
     }
     languageSection = languageSection + generateInnerSimpleField("Total " + language, "<b>" + promptInfo.getTotalFee().ToString("C") + "</b>");
     return languageSection;
 }
 public PromptInformation createLanguagePromptInfo(string language)
 {
     PromptInformation promptInfo = new PromptInformation(this.ctgNumber, language);
     Prompts.Add(promptInfo);
     return promptInfo;
 }