예제 #1
0
        public override Substation Clone()
        {
            Substation clone = new Substation();

            clone.Location = this.Location;
            clone.Name     = this.Name;
            clone.Devices  = this.Devices;

            return(clone);
        }
예제 #2
0
        public override bool Equals(object obj)
        {
            Substation otherSub = obj as Substation;

            if (otherSub == null)
            {
                return(false);
            }

            return(this.Id == otherSub.Id &&
                   this.Name == otherSub.Name &&
                   this.Location == otherSub.Location);
        }