public override int GetHashCode() { return(Date.GetHashCode() ^ 7 * Discipline.GetHashCode() ^ 11 * LeagueName.GetHashCode() ^ 17 * MatchHomeName.GetHashCode() ^ 19 * MatchAwayName.GetHashCode() ^ 23 * PickChoice.GetHashCode() ^ 29 * PickValue.GetHashCode() ^ 31); }
public override bool Equals(object obj) { if (!(obj is BetRequest)) { return(false); } var oBetResponse = (BetRequest)obj; return(Date == oBetResponse.Date && Discipline == oBetResponse.Discipline && LeagueName.EqIgnoreCase(oBetResponse.LeagueName) && MatchHomeName.EqIgnoreCase(oBetResponse.MatchHomeName) && MatchAwayName.EqIgnoreCase(oBetResponse.MatchAwayName) && PickChoice == oBetResponse.PickChoice && PickValue.Eq(oBetResponse.PickValue)); }
void form_FormClosed(object sender, FormClosedEventArgs e) { CharactorForm form = sender as CharactorForm; if (form.Modify == true) { PickValue pickValue = null; if (form.CharactorId == 1) { pickValue = pickValue_color; } else { pickValue = pickValue_size; } List <CharactorValue> values = pickValue.getListRight(); pickValue.initValue(CharactorValueDao.getInstance().FindList(form.CharactorId), "Name", "Id"); pickValue.setSelectItems(values); } }