예제 #1
0
        //
        public string GetLeftPicTextByTitle(string Title, bool IsEnd)
        {
            string AllText = DataQuery.GetText(LeftPicLv2AliasText, Title);

            if (AllText != null)
            {
                AllText = AllText.Replace("<段落><![CDATA[", "");
                AllText = AllText.Replace("]]></段落>", "");
                //return AllText;
                string[] AllTextArray = AllText.Split(';');
                if (IsEnd == false)
                {
                    return(AllTextArray[0].ToString());
                }
                else
                {
                    if (AllTextArray.Length > 1)
                    {
                        return(AllTextArray[1].ToString());
                    }
                    else
                    {
                        return(null);
                    }
                }
            }
            else
            {
                return(null);
            }
        }