Subo cambios
This commit is contained in:
Generated
+2
@@ -136,6 +136,7 @@
|
||||
this.button3.TabIndex = 10;
|
||||
this.button3.Text = "Productos";
|
||||
this.button3.UseVisualStyleBackColor = false;
|
||||
this.button3.Click += new System.EventHandler(this.button3_Click);
|
||||
//
|
||||
// button5
|
||||
//
|
||||
@@ -154,6 +155,7 @@
|
||||
this.button5.TabIndex = 12;
|
||||
this.button5.Text = "Salir";
|
||||
this.button5.UseVisualStyleBackColor = false;
|
||||
this.button5.Click += new System.EventHandler(this.button5_Click);
|
||||
//
|
||||
// lblfecha
|
||||
//
|
||||
|
||||
+31
-2
@@ -11,6 +11,7 @@ using System.Reflection;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
using compabetov2.admin;
|
||||
|
||||
namespace compabetov2
|
||||
{
|
||||
@@ -225,8 +226,36 @@ namespace compabetov2
|
||||
|
||||
private void button2_Click(object sender, EventArgs e)
|
||||
{
|
||||
Estadiscticas verstats = new Estadiscticas();
|
||||
verstats.Show();
|
||||
if (loginPrincipal.tipo.Equals("empleado"))
|
||||
{
|
||||
MessageBox.Show("Usted no tiene permisos de acceder a este apartado");
|
||||
}
|
||||
else
|
||||
{
|
||||
Estadiscticas estadiscticas = new Estadiscticas();
|
||||
estadiscticas.Owner = this;
|
||||
estadiscticas.Show();
|
||||
}
|
||||
}
|
||||
|
||||
private void button5_Click(object sender, EventArgs e)
|
||||
{
|
||||
Close();
|
||||
}
|
||||
|
||||
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