diff --git a/Vista/AddCategoria.Designer.cs b/Vista/AddCategoria.Designer.cs index 8aef6a1..479dd11 100644 --- a/Vista/AddCategoria.Designer.cs +++ b/Vista/AddCategoria.Designer.cs @@ -28,24 +28,24 @@ /// private void InitializeComponent() { - button2 = new Button(); + btnCancelar = new Button(); label1 = new Label(); label2 = new Label(); numid = new NumericUpDown(); textBox1 = new TextBox(); - button1 = new Button(); + btnAceptar = new Button(); ((System.ComponentModel.ISupportInitialize)numid).BeginInit(); SuspendLayout(); // - // button2 + // btnCancelar // - button2.Location = new Point(146, 166); - button2.Name = "button2"; - button2.Size = new Size(75, 23); - button2.TabIndex = 1; - button2.Text = "Cancelar"; - button2.UseVisualStyleBackColor = true; - button2.Click += button2_Click; + btnCancelar.Location = new Point(146, 97); + btnCancelar.Name = "btnCancelar"; + btnCancelar.Size = new Size(75, 23); + btnCancelar.TabIndex = 1; + btnCancelar.Text = "Cancelar"; + btnCancelar.UseVisualStyleBackColor = true; + btnCancelar.Click += button2_Click; // // label1 // @@ -80,40 +80,42 @@ textBox1.Size = new Size(120, 23); textBox1.TabIndex = 5; // - // button1 + // btnAceptar // - button1.Location = new Point(32, 166); - button1.Name = "button1"; - button1.Size = new Size(75, 23); - button1.TabIndex = 6; - button1.Text = "Aceptar"; - button1.UseVisualStyleBackColor = true; - button1.Click += button1_Click; + btnAceptar.Location = new Point(12, 97); + btnAceptar.Name = "btnAceptar"; + btnAceptar.Size = new Size(75, 23); + btnAceptar.TabIndex = 6; + btnAceptar.Text = "Aceptar"; + btnAceptar.UseVisualStyleBackColor = true; + btnAceptar.Click += button1_Click; // // AddCategoria // + AcceptButton = btnAceptar; AutoScaleDimensions = new SizeF(7F, 15F); AutoScaleMode = AutoScaleMode.Font; - ClientSize = new Size(278, 235); - Controls.Add(button1); + CancelButton = btnCancelar; + ClientSize = new Size(247, 128); + Controls.Add(btnAceptar); Controls.Add(textBox1); Controls.Add(numid); Controls.Add(label2); Controls.Add(label1); - Controls.Add(button2); + Controls.Add(btnCancelar); Name = "AddCategoria"; - Text = "Form1"; + Text = "AƱadir Categoria"; ((System.ComponentModel.ISupportInitialize)numid).EndInit(); ResumeLayout(false); PerformLayout(); } #endregion - private Button button2; + private Button btnCancelar; private Label label1; private Label label2; private NumericUpDown numid; private TextBox textBox1; - private Button button1; + private Button btnAceptar; } } \ No newline at end of file diff --git a/Vista/AddCategoria.cs b/Vista/AddCategoria.cs index 669d669..26787ed 100644 --- a/Vista/AddCategoria.cs +++ b/Vista/AddCategoria.cs @@ -28,7 +28,7 @@ namespace Vista } private void CargarDatos() { - numid.Value = ControladoraCategorias.Instance.Listar().Max(x => x.Id+1); + numid.Value = ControladoraCategorias.Instance.Listar().Max(x => x.Id + 1); numid.Enabled = false; } diff --git a/Vista/FrmOrdenDeCompra.Designer.cs b/Vista/FrmOrdenDeCompra.Designer.cs index d6a30f5..292ae56 100644 --- a/Vista/FrmOrdenDeCompra.Designer.cs +++ b/Vista/FrmOrdenDeCompra.Designer.cs @@ -146,7 +146,6 @@ btnAceptar.TabIndex = 25; btnAceptar.Text = "Aceptar"; btnAceptar.UseVisualStyleBackColor = true; - btnAceptar.Click += btnAceptar_Click; // // btnCerrar //