Subo cambios

This commit is contained in:
Michael Robles
2024-06-30 08:33:24 -07:00
parent bd5573527d
commit 13f578865b
28 changed files with 144 additions and 26 deletions
+1
View File
@@ -143,6 +143,7 @@
this.button3.TabIndex = 10;
this.button3.Text = "Productos";
this.button3.UseVisualStyleBackColor = false;
this.button3.Click += new System.EventHandler(this.button3_Click);
//
// button5
//
+16
View File
@@ -11,6 +11,7 @@ using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using compabetov2.admin;
namespace compabetov2
{
@@ -447,5 +448,20 @@ namespace compabetov2
MessageBox.Show("Por favor, ingrese solo números en el teléfono.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
private void button3_Click(object sender, EventArgs e)
{
if (loginPrincipal.tipo.Equals("empleado"))
{
MessageBox.Show("Usted no tiene permisos de acceder a este apartado");
}
else
{
crud crud = new crud();
crud.Owner = this;
crud.Show();
}
}
}
}