public virtual void removePrevious(Composant composant) { if (composant.Equals(this.previous[0])) { this.previous[0] = null; } else { this.previous[1] = null; } }
public void addPrevious(Composant composant) { if (composant is null || this.previous[1] != null) { return;//On ne peut pas ajouter : on n'ajoute pas } if (this.previous[0] != null) { this.previous[1] = composant; } else { this.previous[0] = composant; } }
public override void removePrevious(Composant p) { this.state = -1; base.removePrevious(p); }