private static string[] InitFmlaErr() { Array ErrCodes = TCompactFramework.EnumGetValues(typeof(TFlxFormulaErrorValue)); string[] Result = new string[64]; //It should be the real number but... foreach (TFlxFormulaErrorValue ErrCode in ErrCodes) { Result[(int)ErrCode] = rm.GetString("fm" + ErrCode.ToString()); } return(Result); }
private static string[] InitFmlaToken() { Array Tokens = TCompactFramework.EnumGetValues(typeof(TFormulaToken)); string[] Result = new string[255]; foreach (TFormulaToken Token in Tokens) { string s = rm.GetString(Token.ToString()); if ((s.Length == 0)) { s = " "; //Xml resource does not save a single space! } Result[(int)Token] = s; } return(Result); }
private static Dictionary <string, TShapeType> CreateStringToShapeType() { Dictionary <string, TShapeType> Result = new Dictionary <string, TShapeType>(); foreach (TShapeType st in TCompactFramework.EnumGetValues(typeof(TShapeType))) { if (st == TShapeType.NotPrimitive) { continue; } if (FromShapeType.ContainsKey(st)) { Result.Add(FromShapeType[st], st); } } return(Result); }