public override bool Equals(Object obj) { if (obj is Executor ob) { return(Id.Equals(ob.Id) && Name.Equals(ob.Name) && ShortName.Equals(ob.ShortName) && Login.Equals(ob.Login) && StructureId.Equals(ob.StructureId) && Activity.Equals(ob.Activity)); } return(false); }