Example #1
0
 public bool CompareVote(ElectorProposal e)
 {
     if (e.Vote == this.Vote)
     {
         return(true);
     }
     return(false);
 }
Example #2
0
        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);
        }