Retocado AddCategoria

This commit is contained in:
fedpo
2024-08-06 00:10:48 +01:00
committed by fede
parent 837f57a7cd
commit 4ef8bd03fc
3 changed files with 27 additions and 26 deletions

View File

@@ -28,24 +28,24 @@
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
button2 = new Button(); btnCancelar = new Button();
label1 = new Label(); label1 = new Label();
label2 = new Label(); label2 = new Label();
numid = new NumericUpDown(); numid = new NumericUpDown();
textBox1 = new TextBox(); textBox1 = new TextBox();
button1 = new Button(); btnAceptar = new Button();
((System.ComponentModel.ISupportInitialize)numid).BeginInit(); ((System.ComponentModel.ISupportInitialize)numid).BeginInit();
SuspendLayout(); SuspendLayout();
// //
// button2 // btnCancelar
// //
button2.Location = new Point(146, 166); btnCancelar.Location = new Point(146, 97);
button2.Name = "button2"; btnCancelar.Name = "btnCancelar";
button2.Size = new Size(75, 23); btnCancelar.Size = new Size(75, 23);
button2.TabIndex = 1; btnCancelar.TabIndex = 1;
button2.Text = "Cancelar"; btnCancelar.Text = "Cancelar";
button2.UseVisualStyleBackColor = true; btnCancelar.UseVisualStyleBackColor = true;
button2.Click += button2_Click; btnCancelar.Click += button2_Click;
// //
// label1 // label1
// //
@@ -80,40 +80,42 @@
textBox1.Size = new Size(120, 23); textBox1.Size = new Size(120, 23);
textBox1.TabIndex = 5; textBox1.TabIndex = 5;
// //
// button1 // btnAceptar
// //
button1.Location = new Point(32, 166); btnAceptar.Location = new Point(12, 97);
button1.Name = "button1"; btnAceptar.Name = "btnAceptar";
button1.Size = new Size(75, 23); btnAceptar.Size = new Size(75, 23);
button1.TabIndex = 6; btnAceptar.TabIndex = 6;
button1.Text = "Aceptar"; btnAceptar.Text = "Aceptar";
button1.UseVisualStyleBackColor = true; btnAceptar.UseVisualStyleBackColor = true;
button1.Click += button1_Click; btnAceptar.Click += button1_Click;
// //
// AddCategoria // AddCategoria
// //
AcceptButton = btnAceptar;
AutoScaleDimensions = new SizeF(7F, 15F); AutoScaleDimensions = new SizeF(7F, 15F);
AutoScaleMode = AutoScaleMode.Font; AutoScaleMode = AutoScaleMode.Font;
ClientSize = new Size(278, 235); CancelButton = btnCancelar;
Controls.Add(button1); ClientSize = new Size(247, 128);
Controls.Add(btnAceptar);
Controls.Add(textBox1); Controls.Add(textBox1);
Controls.Add(numid); Controls.Add(numid);
Controls.Add(label2); Controls.Add(label2);
Controls.Add(label1); Controls.Add(label1);
Controls.Add(button2); Controls.Add(btnCancelar);
Name = "AddCategoria"; Name = "AddCategoria";
Text = "Form1"; Text = "Añadir Categoria";
((System.ComponentModel.ISupportInitialize)numid).EndInit(); ((System.ComponentModel.ISupportInitialize)numid).EndInit();
ResumeLayout(false); ResumeLayout(false);
PerformLayout(); PerformLayout();
} }
#endregion #endregion
private Button button2; private Button btnCancelar;
private Label label1; private Label label1;
private Label label2; private Label label2;
private NumericUpDown numid; private NumericUpDown numid;
private TextBox textBox1; private TextBox textBox1;
private Button button1; private Button btnAceptar;
} }
} }

View File

@@ -146,7 +146,6 @@
btnAceptar.TabIndex = 25; btnAceptar.TabIndex = 25;
btnAceptar.Text = "Aceptar"; btnAceptar.Text = "Aceptar";
btnAceptar.UseVisualStyleBackColor = true; btnAceptar.UseVisualStyleBackColor = true;
btnAceptar.Click += btnAceptar_Click;
// //
// btnCerrar // btnCerrar
// //