diff --git a/Ventas/datosCuenta.Designer.cs b/Ventas/datosCuenta.Designer.cs index a456cb4..224b709 100644 --- a/Ventas/datosCuenta.Designer.cs +++ b/Ventas/datosCuenta.Designer.cs @@ -29,7 +29,7 @@ private void InitializeComponent() { this.label1 = new System.Windows.Forms.Label(); - this.btnCliente = new System.Windows.Forms.TextBox(); + this.txtCliente = new System.Windows.Forms.TextBox(); this.btnAceptar = new System.Windows.Forms.Button(); this.btnCancelar = new System.Windows.Forms.Button(); this.SuspendLayout(); @@ -44,13 +44,13 @@ this.label1.TabIndex = 0; this.label1.Text = "Cliente"; // - // btnCliente + // txtCliente // - this.btnCliente.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.btnCliente.Location = new System.Drawing.Point(16, 52); - this.btnCliente.Name = "btnCliente"; - this.btnCliente.Size = new System.Drawing.Size(283, 26); - this.btnCliente.TabIndex = 1; + this.txtCliente.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.txtCliente.Location = new System.Drawing.Point(16, 52); + this.txtCliente.Name = "txtCliente"; + this.txtCliente.Size = new System.Drawing.Size(283, 26); + this.txtCliente.TabIndex = 1; // // btnAceptar // @@ -81,7 +81,7 @@ this.ClientSize = new System.Drawing.Size(320, 160); this.Controls.Add(this.btnCancelar); this.Controls.Add(this.btnAceptar); - this.Controls.Add(this.btnCliente); + this.Controls.Add(this.txtCliente); this.Controls.Add(this.label1); this.Name = "datosCuenta"; this.Text = "Datos de cuenta"; @@ -94,7 +94,7 @@ #endregion private System.Windows.Forms.Label label1; - private System.Windows.Forms.TextBox btnCliente; + private System.Windows.Forms.TextBox txtCliente; private System.Windows.Forms.Button btnAceptar; private System.Windows.Forms.Button btnCancelar; } diff --git a/Ventas/datosCuenta.cs b/Ventas/datosCuenta.cs index 7f40f5f..5d4f15c 100644 --- a/Ventas/datosCuenta.cs +++ b/Ventas/datosCuenta.cs @@ -32,6 +32,7 @@ namespace compabetov2.Ventas private void btnAceptar_Click(object sender, EventArgs e) { + ventaModel.cliente = txtCliente.Text; if (service.crearCuenta(ventaModel, detalles)) { MessageBox.Show("Fiado"); diff --git a/bin/Debug/compabetov2.exe b/bin/Debug/compabetov2.exe index b496ff0..8718b0e 100644 Binary files a/bin/Debug/compabetov2.exe and b/bin/Debug/compabetov2.exe differ diff --git a/bin/Debug/compabetov2.pdb b/bin/Debug/compabetov2.pdb index 7be2964..bab39a4 100644 Binary files a/bin/Debug/compabetov2.pdb and b/bin/Debug/compabetov2.pdb differ diff --git a/bin/Debug/data.db b/bin/Debug/data.db index 7d60d30..9a8dabc 100644 Binary files a/bin/Debug/data.db and b/bin/Debug/data.db differ diff --git a/obj/Debug/compabetov2.csproj.AssemblyReference.cache b/obj/Debug/compabetov2.csproj.AssemblyReference.cache index a98f1ed..a853f99 100644 Binary files a/obj/Debug/compabetov2.csproj.AssemblyReference.cache and b/obj/Debug/compabetov2.csproj.AssemblyReference.cache differ diff --git a/obj/Debug/compabetov2.exe b/obj/Debug/compabetov2.exe index b496ff0..8718b0e 100644 Binary files a/obj/Debug/compabetov2.exe and b/obj/Debug/compabetov2.exe differ diff --git a/obj/Debug/compabetov2.pdb b/obj/Debug/compabetov2.pdb index 7be2964..bab39a4 100644 Binary files a/obj/Debug/compabetov2.pdb and b/obj/Debug/compabetov2.pdb differ