/// <summary>
 /// Creates the instance with model and manufacturer.
 /// </summary>
 /// <param name="modelo">Model of the entity as a string.</param>
 /// <param name="fabricante">Manufacturer of the entity.</param>
 /// <param name="pais">???</param>
 public Producto(string modelo, string marca, EPais pais)
     : this(modelo, new Fabricante(marca, pais))
 {
 }
示例#2
0
 private void Registros()
 {
     Dt = EPais.Mostrar();
     LbTotalReg.Text = Convert.ToString(Dt.Rows.Count.ToString());
 }
 /// <summary>
 /// Creates the entity with its brand and country.
 /// </summary>
 /// <param name="marca">Brand of the entity as a string.</param>
 /// <param name="pais">Country of the entity (enum EPais)</param>
 public Fabricante(string marca, EPais pais)
 {
     this.marca = marca;
     this.pais  = pais;
 }
 public Moto(string marca, EPais pais, string modelo, float precio, ECilindrada cilindrada) : base(marca, pais, modelo, precio)
 {
     this.cilindrada = cilindrada;
 }
示例#5
0
 public Moto(string marca, EPais pais, string modelo, float precio, ECilindrada cilindrada)
     : base(precio, modelo, new Fabricante(marca, pais))
 {
     this.cilindrada = cilindrada;
 }