/// <summary>
 /// Конструктор создает объект с параметрами по умолчанию
 /// </summary>
 public ComponentLLPCategoryData(ComponentLLPCategoryData copyData) : this()
 {
     ComponentId    = copyData.ComponentId;
     ParentCategory = copyData.ParentCategory;
     LLPLifelength  = new Lifelength(copyData.LLPLifelength);
     LLPLifeLimit   = new Lifelength(copyData.LLPLifeLimit);
     Notify         = new Lifelength(copyData.Notify);
     Remain         = new Lifelength(copyData.Remain);
     ParentCategory = copyData.ParentCategory;
 }
        public new ComponentLLPCategoryData GetCopyUnsaved()
        {
            ComponentLLPCategoryData componentLLP = (ComponentLLPCategoryData)MemberwiseClone();

            componentLLP.ItemId = -1;
            componentLLP.UnSetEvents();

            componentLLP.LLPLifelength        = new Lifelength(LLPLifelength);
            componentLLP.LLPLifeLimit         = new Lifelength(LLPLifeLimit);
            componentLLP.Notify               = new Lifelength(Notify);
            componentLLP.Remain               = new Lifelength(Remain);
            componentLLP.LLPLifelengthCurrent = new Lifelength(LLPLifelengthCurrent);
            componentLLP.LLPLifeLengthForDate = new Lifelength(LLPLifeLengthForDate);
            componentLLP.FromDate             = FromDate;

            return(componentLLP);
        }