cierre completo de las ventanas
This commit is contained in:
+25
-17
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using compabetov2.database.modelos;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
@@ -19,10 +20,11 @@ namespace compabetov2
|
||||
public partial class MenuPrincipal : Form
|
||||
{
|
||||
private int childFormNumber = 0;
|
||||
|
||||
public MenuPrincipal()
|
||||
private LoginModel loginPrincipal;
|
||||
public MenuPrincipal(LoginModel loginPrincipal)
|
||||
{
|
||||
InitializeComponent();
|
||||
this.loginPrincipal = loginPrincipal;
|
||||
}
|
||||
|
||||
|
||||
@@ -65,16 +67,17 @@ namespace compabetov2
|
||||
|
||||
private void button5_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.Dispose();
|
||||
|
||||
|
||||
login login = new login();
|
||||
login.Show();
|
||||
login.ShowDialog();
|
||||
this.Dispose();
|
||||
}
|
||||
|
||||
private void pictureBox4_Click(object sender, EventArgs e)
|
||||
{
|
||||
inventario inventario = new inventario();
|
||||
inventario.Show();
|
||||
inventario inventario = new inventario(loginPrincipal);
|
||||
inventario.ShowDialog();
|
||||
|
||||
this.Dispose(true);
|
||||
|
||||
@@ -87,34 +90,34 @@ namespace compabetov2
|
||||
|
||||
private void pictureBox1_Click(object sender, EventArgs e)
|
||||
{
|
||||
personal personal = new personal();
|
||||
personal personal = new personal(loginPrincipal);
|
||||
|
||||
personal.Show();
|
||||
personal.ShowDialog();
|
||||
this.Dispose(true);
|
||||
|
||||
}
|
||||
|
||||
private void pictureBox3_Click(object sender, EventArgs e)
|
||||
{
|
||||
envios envios = new envios();
|
||||
envios envios = new envios(loginPrincipal);
|
||||
|
||||
envios.Show();
|
||||
envios.ShowDialog();
|
||||
this.Dispose(true);
|
||||
|
||||
}
|
||||
|
||||
private void pictureBox5_Click(object sender, EventArgs e)
|
||||
{
|
||||
cuentas cuentas = new cuentas();
|
||||
cuentas.Show();
|
||||
cuentas cuentas = new cuentas(loginPrincipal);
|
||||
cuentas.ShowDialog();
|
||||
this.Dispose(true);
|
||||
|
||||
}
|
||||
|
||||
private void pictureBox6_Click(object sender, EventArgs e)
|
||||
{
|
||||
mermas mermas = new mermas();
|
||||
mermas.Show();
|
||||
mermas mermas = new mermas(loginPrincipal);
|
||||
mermas.ShowDialog();
|
||||
|
||||
this.Dispose(true);
|
||||
|
||||
@@ -127,8 +130,8 @@ namespace compabetov2
|
||||
|
||||
private void pictureBox2_Click(object sender, EventArgs e)
|
||||
{
|
||||
vender vender = new vender();
|
||||
vender.Show();
|
||||
vender vender = new vender(loginPrincipal);
|
||||
vender.ShowDialog();
|
||||
|
||||
this.Dispose(true);
|
||||
}
|
||||
@@ -142,5 +145,10 @@ namespace compabetov2
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void panel1_Paint(object sender, PaintEventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user