/// <summary> /// Ajoute un casier à la liste /// </summary> /// <param name="p"></param> /// <exception cref="Exception">Si le casier existe déjà</exception> public void Ajouter(Casier p) { if (casiers.Contains(p)) { throw new Exception("Le casier existe déjà"); } casiers.Add(p); }
public Bouteille(int id, Boolean bue, string texte, int posX, int posY, Casier cas, Cru cru, Millesime mil, Contenance con, Domaine dom, Region reg, Type_vinification tv, Appelation app, Type type) { this.id = id; this.bue = bue; this.texte = texte; this.posX = posX; this.posY = posY; this.casier = cas; this.cru = cru; this.millesime = mil; this.contenance = con; this.domaine = dom; this.region = reg; this.type_vinification = tv; this.appelation = app; this.type = type; }
public void Supprimer(Casier c) { casiers.Remove(c); }
public void Ajouter(Casier c) { casiers.Add(c); }
public void Ajouter(Casier c) { c.Cave.Ajouter(c); }