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;
            }
        }
예제 #3
0
 public override void removePrevious(Composant p)
 {
     this.state = -1;
     base.removePrevious(p);
 }