예제 #1
0
//		public static SchemaKey VERSION_UNIT = new SUnitKey(0);
//		public static SchemaKey STYLE_NAME = new SUnitKey(1);
//		public static SchemaKey STYLE_DESC = new SUnitKey(2);
//		public static SchemaKey CAN_BE_ERASED = new SUnitKey(3);

        public static SchemaDictionary2 Make(string name, string desc)
        {
            SchemaDictionary2 temp = _unitSchemaFields.Clone();

//			temp[SKey.Key2].Value = name;
//			temp[SKey.Key3].Value = desc;
            temp[eSTYLE_NAME].Value = name;
            temp[eSTYLE_DESC].Value = desc;

            SKey s = new SKey(1);

            return(temp);
        }
예제 #2
0
        internal static SchemaDictionary2[] GetUnitSchemaFields(int count)
        {
            SchemaDictionary2[] unitSchemaFields =
                new SchemaDictionary2[count];

            // create the UnitSchema's
            // personlize the sub schema's
            for (int i = 0; i < count; i++)
            {
                unitSchemaFields[i] = _unitSchemaFields.Clone();
                unitSchemaFields[i][eSTYLE_NAME].Value =
                    string.Format(_unitSchemaFields[eSTYLE_NAME].Value, i);
            }

            return(unitSchemaFields);
        }