Пример #1
0
        public override IBalanceItem Copy()
        {
            var s = new SubstationSection
            {
                Id          = this.Id,
                Code        = this.Code,
                Name        = this.Name,
                Description = this.Description,
                Voltage     = this.Voltage
            };

            s.SetSubstation(this.Substation);
            foreach (IBalanceItem child in this.Children)
            {
                s.Children.Add(child.Copy());
            }

            return(s);
        }