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
@@ -257,6 +257,7 @@
this.button5.TabIndex = 12;
this.button5.Text = "Salir";
this.button5.UseVisualStyleBackColor = false;
this.button5.Click += new System.EventHandler(this.button5_Click);
//
// flowLayoutPanel3
//
+19 -2
View File
@@ -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();
}
}
}