bajar cambios
This commit is contained in:
+19
-2
@@ -16,6 +16,7 @@ using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
using System.Windows.Forms.VisualStyles;
|
||||
using static System.Windows.Forms.VisualStyles.VisualStyleElement.TextBox;
|
||||
using compabetov2.admin;
|
||||
|
||||
namespace compabetov2
|
||||
{
|
||||
@@ -891,8 +892,24 @@ namespace compabetov2
|
||||
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();
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
private void button5_Click(object sender, EventArgs e)
|
||||
{
|
||||
Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user