public bool CompareVote(ElectorProposal e) { if (e.Vote == this.Vote) { return(true); } return(false); }
public override bool Equals(Object obj) { ElectorProposal ep = null; try { ep = (ElectorProposal)obj; } catch { return(base.Equals(obj)); } if (this.IdElector == ep.IdElector && this.IdProposal == ep.IdProposal) { return(true); } return(false); }