示例#1
0
        /// <summary>
        /// Creates a copy of <see cref="ConditionModel"/>
        /// </summary>
        public ConditionModel(ConditionModel conditionModel) : base(conditionModel)
        {
            _description    = conditionModel.Description;
            _levels         = conditionModel.Levels;
            _headers        = new List <string>(conditionModel.Headers);
            _elements       = new List <string>(conditionModel.Elements);
            _textCollection = new List <string>(conditionModel.TextCollection);

            _xml = conditionModel.XML;
        }
示例#2
0
 /// <summary>
 /// Creates an instance of <see cref="AppliedConditionModel"/>
 /// </summary>
 public AppliedConditionModel(AppliedConditionModel appliedConditionModel)
 {
     _id = appliedConditionModel.ID;
     if (appliedConditionModel.ConditionModel != null)
     {
         _conditionModel = new ConditionModel(appliedConditionModel.ConditionModel);
     }
     _name  = appliedConditionModel.Name;
     _level = appliedConditionModel.Level;
     _notes = appliedConditionModel.Notes;
 }