cierre completo de las ventanas

This commit is contained in:
carlos
2024-01-17 00:05:29 -06:00
parent adf9065d25
commit c76a8bed7a
19 changed files with 171 additions and 89 deletions
+6 -3
View File
@@ -1,4 +1,5 @@
using System;
using compabetov2.database.modelos;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
@@ -12,14 +13,16 @@ namespace compabetov2
{
public partial class envios : Form
{
public envios()
private LoginModel loginPrincipal;
public envios(LoginModel loginPrincipal)
{
InitializeComponent();
this.loginPrincipal = loginPrincipal;
}
private void button1_Click(object sender, EventArgs e)
{
MenuPrincipal menuPrincipal = new MenuPrincipal();
MenuPrincipal menuPrincipal = new MenuPrincipal(loginPrincipal);
menuPrincipal.Show();
this.Dispose(true);
}