/// <summary> /// Methode permettant de faire l'animation sur les titres. /// </summary> void animDate() { DoubleAnimation anim = new DoubleAnimation(); anim.From = 100; anim.To = 500; anim.AccelerationRatio = 0.33; anim.DecelerationRatio = 0.33; anim.Duration = TimeSpan.FromSeconds(1); ResMap.BeginAnimation(ContentControl.WidthProperty, anim); }
public bool Equals(PBLoginSucc other) { if (ReferenceEquals(other, null)) { return(false); } if (ReferenceEquals(other, this)) { return(true); } if (UserId != other.UserId) { return(false); } if (PlayerId != other.PlayerId) { return(false); } if (Name != other.Name) { return(false); } if (Tili != other.Tili) { return(false); } if (Jingli != other.Jingli) { return(false); } if (BattleScore != other.BattleScore) { return(false); } if (!ResMap.Equals(other.ResMap)) { return(false); } if (!heroList_.Equals(other.heroList_)) { return(false); } if (!equipList_.Equals(other.equipList_)) { return(false); } if (!object.Equals(Formation, other.Formation)) { return(false); } return(true); }
public override int GetHashCode() { int hash = 1; if (UserId != 0) { hash ^= UserId.GetHashCode(); } if (PlayerId != 0L) { hash ^= PlayerId.GetHashCode(); } if (Name.Length != 0) { hash ^= Name.GetHashCode(); } if (Tili != 0) { hash ^= Tili.GetHashCode(); } if (Jingli != 0) { hash ^= Jingli.GetHashCode(); } if (BattleScore != 0L) { hash ^= BattleScore.GetHashCode(); } hash ^= ResMap.GetHashCode(); hash ^= heroList_.GetHashCode(); hash ^= equipList_.GetHashCode(); if (formation_ != null) { hash ^= Formation.GetHashCode(); } return(hash); }