cierre completo de las ventanas
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user