Example #1
0
 /// <summary>
 /// Ajoute un pays à la liste
 /// </summary>
 /// <param name="p"></param>
 /// <exception cref="Exception">Si le pays existe déjà</exception>
 public void Ajouter(Pays p)
 {
     if (pays.Contains(p))
     {
         throw new Exception("Le pays existe déjà");
     }
     pays.Add(p);
 }
Example #2
0
 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, Pays pays)
 {
     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;
     this.pays              = pays;
 }
Example #3
0
 /// <summary>
 /// supprime un pays de la lsite
 /// </summary>
 /// <param name="p">pays à supprimer</param>
 public void supprimer(Pays p)
 {
     pays.Remove(p);
 }