bajar cambios
This commit is contained in:
Generated
+1
@@ -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
|
||||
//
|
||||
|
||||
@@ -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();
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user