コード例 #1
0
 /*
  * Реализация
  */
 #region public EventClass()
 /// <summary>
 /// Конструктор по умолчанию
 /// </summary>
 public EventClass()
 {
     _fullName     = "";
     _peopleDamage = HumanDamage.UNK;
     _failureViolationDeviation = FailureViolationDeviation.UNK;
     _regularity          = Regularity.UNK;
     _propertyDamage      = PropertyDamage.UNK;
     _environmentalDamage = EnvironmentalDamage.UNK;
     _reputationDamage    = ReputationDamage.UNK;
     ItemId = -1;
     SmartCoreObjectType = SmartCoreType.EventClass;
 }
コード例 #2
0
        public void SetProperties(EventClass dictionary)
        {
            _fullName     = dictionary.FullName;
            _peopleDamage = dictionary.PeopleDamage;
            _failureViolationDeviation = dictionary.FailureViolationDeviation;
            _regularity          = dictionary.Regularity;
            _propertyDamage      = dictionary.PropertyDamage;
            _environmentalDamage = dictionary.EnvironmentalDamage;
            _reputationDamage    = dictionary.ReputationDamage;

            OnPropertyChanged("FullName");
        }
コード例 #3
0
 /// <summary>
 /// Конструктор создает объект типа директивы
 /// </summary>
 /// <param name="fullName">Название</param>
 /// <param name="people">Ущерб людям</param>
 /// <param name="failureViolationDeviation">Отказы, неисправности, отклонения</param>
 /// <param name="regularity">регулярность</param>
 /// <param name="propertyDamage">Ущерб имуществу</param>
 /// <param name="environmentalDamage">Ущерб окружаюшей среде</param>
 /// <param name="reputationDamage">Ушерб репутации</param>
 public EventClass(String fullName, HumanDamage people,
                   FailureViolationDeviation failureViolationDeviation,
                   Regularity regularity,
                   PropertyDamage propertyDamage,
                   EnvironmentalDamage environmentalDamage,
                   ReputationDamage reputationDamage)
 {
     _fullName     = fullName;
     _peopleDamage = people;
     _failureViolationDeviation = failureViolationDeviation;
     _regularity          = regularity;
     _propertyDamage      = propertyDamage;
     _environmentalDamage = environmentalDamage;
     _reputationDamage    = reputationDamage;
 }