예제 #1
0
        private static string[] CreateConfigTagsParams()
        {
            ResourceManager rm = new ResourceManager("FlexCel.Report.ConfigTagNames", Assembly.GetExecutingAssembly());

            string[] Result = new string[64];             //bigger just in case
            foreach (ConfigTagEnum tag in TCompactFramework.EnumGetValues(typeof(ConfigTagEnum)))
            {
                Result[(int)tag] = rm.GetString("P" + tag.ToString().ToUpper(CultureInfo.InvariantCulture), CultureInfo.InvariantCulture);
                Debug.Assert(Result[(int)tag] != null);
            }
            return(Result);
        }
예제 #2
0
        private static Dictionary <string, ApplyFormatTagEnum> CreateApplyFormatTags()
        {
            ResourceManager rm = new ResourceManager("FlexCel.Report.ConfigTagNames", Assembly.GetExecutingAssembly());
            Dictionary <string, ApplyFormatTagEnum> Result = new Dictionary <string, ApplyFormatTagEnum>(StringComparer.InvariantCultureIgnoreCase);

            foreach (ApplyFormatTagEnum tag in TCompactFramework.EnumGetValues(typeof(ApplyFormatTagEnum)))
            {
                string s = rm.GetString("Format." + tag.ToString().ToUpper(CultureInfo.InvariantCulture), CultureInfo.InvariantCulture);
                Debug.Assert(s != null);
                Result[s] = tag;
            }
            return(Result);
        }
예제 #3
0
        private static string[] InitTokens()
        {
            ResourceManager rm        = new ResourceManager("FlexCel.Pdf.pdftokens", Assembly.GetExecutingAssembly());
            Array           TokenList = TCompactFramework.EnumGetValues(typeof(TPdfToken));

            string[] Result = new string[300];
            foreach (TPdfToken Token in TokenList)
            {
                string s = rm.GetString(Token.ToString());
                Result[(int)Token] = s;
            }
            return(Result);
        }