public bool AjouterSE(SystemeExploitation se) { foreach (SystemeExploitation item in _se) { if (item.Equals(se)) { return(false); } } _se.Add(se); return(true); }
public override bool Equals(object obj) { if (obj == null) { return(false); } if (!(obj is SystemeExploitation)) { return(false); } SystemeExploitation se = (SystemeExploitation)obj; return(se.bus == this.bus && this._libelle == se._libelle && this._dateSortie.CompareTo(se._dateSortie) == 0); }