Se agrega el form de crud
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using compabetov2.database;
|
||||
using compabetov2.admin;
|
||||
using compabetov2.database;
|
||||
using compabetov2.database.modelos;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
@@ -22,6 +23,7 @@ namespace compabetov2
|
||||
{
|
||||
private int childFormNumber = 0;
|
||||
private LoginModel loginPrincipal;
|
||||
|
||||
public MenuPrincipal(LoginModel loginPrincipal)
|
||||
{
|
||||
InitializeComponent();
|
||||
@@ -195,5 +197,19 @@ 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();
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user