Esempio n. 1
0
 public bool Registrar(string cod, string ori, string des, float pre, ETiposVuelo tV)
 {
     foreach (CAereo aux in this.listado)
     {
         if (aux.GetCodigo() == cod)
         {
             return(false);
         }
     }
     this.listado.Add(new CAereo(cod, ori, des, pre, tV));
     CBDVuelos.GuardarVuelo(cod, ori, des, pre, tV.ToString());
     return(true);
 }
Esempio n. 2
0
 public CAereo(string cod, string ori, string des, float pre, ETiposVuelo tV) : base(cod, ori, des)
 {
     this.PrecioViaje = pre;
     this.tipoVuelo   = tV;
 }