Exemplo n.º 1
0
        public void AddDefault <TD>(SchemaRootKey key)
        {
            SchemaFieldDef <TD, SchemaRootKey> f = rootFields.GetField <TD>(key);

            rootDict.Add(key,
                         new SchemaRootDataField <TD>(f.Value, f));
        }
Exemplo n.º 2
0
 public void SetValue <TD>(SchemaRootKey key, TD value)
 {
     ((SchemaRootDataField <TD>)rootDict[key]).Value = value;
 }
Exemplo n.º 3
0
 public void Add <TD>(SchemaRootKey key, TD value)
 {
     rootDict.Add(key,
                  new SchemaRootDataField <TD>(value, rootFields.GetField <TD>(key)));
 }
Exemplo n.º 4
0
 public ASchemaDataFieldDef <SchemaRootKey> this[SchemaRootKey key] => rootDict[key];
Exemplo n.º 5
0
 public TD GetValue <TD>(SchemaRootKey key)
 {
     return(((SchemaRootDataField <TD>)rootDict[key]).Value);
 }
Exemplo n.º 6
0
 public SchemaFieldRoot(SchemaRootKey sequence, string name, string desc, TD val,
                        RevitUnitType unitType = RevitUnitType.UT_UNDEFINED, string guid = "") :
     base(sequence, name, desc, val, unitType, guid)
 {
 }
Exemplo n.º 7
0
 public void SetValue <TD>(SchemaRootKey key, TD value)
 {
     ((SchemaFieldRoot <TD>)Fields[key]).Value = value;
 }
Exemplo n.º 8
0
 public TD GetValue <TD>(SchemaRootKey key)
 {
     return(((SchemaFieldRoot <TD>)Fields[key]).Value);
 }
Exemplo n.º 9
0
 public SchemaFieldRoot <TD> GetField <TD>(SchemaRootKey key)
 {
     return((SchemaFieldRoot <TD>)Fields[key]);
 }
Exemplo n.º 10
0
 public ISchemaFieldDef <SchemaRootKey> this[SchemaRootKey key] => Fields[key];