public ScorocodeField(string name, ScorocodeTypes type, string target, bool system, bool readOnly, bool required)
 {
     this.name     = name;
     this.type     = type.GetName();
     this.target   = target;
     this.system   = system;
     this.readOnly = readOnly;
     this.required = required;
 }
Exemple #2
0
 public static Dictionary <int, string> Values(this ScorocodeTypes typeCode)
 {
     return(typeNames);
 }
Exemple #3
0
        public static string GetName(this ScorocodeTypes typeCode)
        {
            int index = (int)typeCode;

            return(index >= 0 && index <= 10 ? typeNames[index] : typeNames[10]);
        }