Ejemplo n.º 1
0
        public string GetScript()
        {
            StringBuilder sb = new StringBuilder();

            sb.AppendLine(DataHelper.GetCommandListScript(CommandList));

            TextSection.DecodeText();
            string strTextSection = TextSection.GetCombinedTextString();

            if (!string.IsNullOrEmpty(strTextSection))
            {
                sb.AppendLine("{SECTION:TEXT}");
                sb.AppendLine();
                sb.Append(strTextSection);
            }

            string strDataSection = DataSection.GetCombinedByteString();

            if (!string.IsNullOrEmpty(strDataSection))
            {
                sb.AppendLine("{SECTION:DATA}");
                sb.AppendLine();
                sb.Append(strDataSection);
            }

            return(sb.ToString());
        }