Esempio n. 1
0
 public bool CompareVote(PoliticianProposal p)
 {
     if (p.Vote == this.Vote)
     {
         return(true);
     }
     return(false);
 }
Esempio n. 2
0
        public override bool Equals(Object obj)
        {
            PoliticianProposal ep = null;

            try
            {
                ep = (PoliticianProposal)obj;
            }
            catch
            {
                return(base.Equals(obj));
            }

            if (this.IdPolitician == ep.IdPolitician &&
                this.IdProposal == ep.IdProposal)
            {
                return(true);
            }

            return(false);
        }