Esempio n. 1
0
        /// <summary>
        /// Reads the text and stores it in lists of lines
        /// </summary>
        /// <param name="name">File to load</param>
        protected virtual void ReadText(string name)
        {
            BBSCodeTranslator translator = new BBSCodeTranslator(client, server);

            Data = translator.GetProcessed(GetFile(name));
            if (!Data.HasBodyFocusedBackground)
            {
                NameValueCollection appearance = (NameValueCollection)ConfigurationManager.GetSection("Appearance");
                FocusedBackground = ANSI.GetColorByName(appearance["FocusedColor"], true);
            }
            else
            {
                FocusedBackground = Data.BodyFocusedBackground;
            }

            Text   = Data.GetRows();
            Header = Data.GetHeaderRows();
            Footer = Data.GetFooterRows();
        }