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,9 +13,11 @@ namespace compabetov2
|
||||
{
|
||||
public partial class mermas : Form
|
||||
{
|
||||
public mermas()
|
||||
private LoginModel loginPrincipal;
|
||||
public mermas(LoginModel loginPrincipal)
|
||||
{
|
||||
InitializeComponent();
|
||||
this.loginPrincipal = loginPrincipal;
|
||||
}
|
||||
|
||||
private void mermas_Load(object sender, EventArgs e)
|
||||
@@ -40,7 +43,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