public SharedEmployeeCustomField(SharedEmployeeCustomFieldId id,
                                         string name,
                                         string dictionaryName, long minValue, long maxValue)
        {
            if (id == null)
            {
                throw new ArgumentNullException("id");
            }
            this.id = id;
            if (string.IsNullOrWhiteSpace(name))
            {
                throw new ArgumentNullException("name");
            }
            this.name = name;

            if (string.IsNullOrWhiteSpace(dictionaryName))
            {
                throw new ArgumentNullException("dictionaryName");
            }
            this.dictionaryName = dictionaryName;

            if (minValue > maxValue)
            {
                throw new ArgumentException("minvalue is greater than maxValue");
            }
            this.minValue = minValue;
            this.maxValue = maxValue;
        }
Beispiel #2
0
 private void removeCustomFieldById(SharedEmployeeCustomFieldId id)
 {
     customFieldValues.Remove(id);
 }