cierre completo de las ventanas
This commit is contained in:
@@ -29,14 +29,16 @@ namespace compabetov2
|
||||
private List<Producto> productos;
|
||||
private List<TableLayoutPanel> cartas = new List<TableLayoutPanel>();
|
||||
private decimal total = 0;
|
||||
private LoginModel loginPrincipal;
|
||||
|
||||
|
||||
|
||||
public vender()
|
||||
public vender(LoginModel loginPrincipal)
|
||||
{
|
||||
InitializeComponent();
|
||||
getData();
|
||||
llenarLayout();
|
||||
this.loginPrincipal = loginPrincipal;
|
||||
}
|
||||
|
||||
private void llenarLayout()
|
||||
@@ -375,7 +377,7 @@ namespace compabetov2
|
||||
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
MenuPrincipal menuPrincipal = new MenuPrincipal();
|
||||
MenuPrincipal menuPrincipal = new MenuPrincipal(loginPrincipal);
|
||||
menuPrincipal.Show();
|
||||
this.Dispose(true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user