Пример #1
0
 public HouseholdKeyEntry([NotNull] HouseholdKey hhKey, [NotNull] string householdName, HouseholdKeyType type,
                          [NotNull] string householdDescription, [CanBeNull] string?houseName,
                          [CanBeNull] string?houseDescription)
 {
     HHKey                = hhKey;
     HouseholdName        = householdName;
     KeyType              = type;
     HouseholdDescription = householdDescription;
     HouseName            = houseName;
     HouseDescription     = houseDescription;
 }
        public void RegisterHousehold([NotNull] HouseholdKey key, [NotNull] string name, HouseholdKeyType type, [NotNull] IInputDataLogger idl, [NotNull] string description,
                                      [CanBeNull] string houseName, [CanBeNull] string houseDescription)
        {
            if (_householdKeys.Contains(key))
            {
                return;
                //throw new LPGException("Key was already registered: " + key.Key);
            }

            HouseholdKeyEntry hhke = new HouseholdKeyEntry(key, name, type, description, houseName, houseDescription);

            _householdKeys.Add(key);
            //_householdEntries.Add(hhke);
            idl.Save(hhke);
        }
 public void RegisterHousehold([NotNull] HouseholdKey householdKey, [NotNull] string name, HouseholdKeyType type,
                               [NotNull] string description, [CanBeNull] string houseName, [CanBeNull] string houseDescription)
 {
     HouseholdRegistry.RegisterHousehold(householdKey, name, type, _inputDataLogger, description, houseName, houseDescription);
 }