merge gigante
This commit is contained in:
89
Vista/PantallaPrincipal.cs
Normal file
89
Vista/PantallaPrincipal.cs
Normal file
@@ -0,0 +1,89 @@
|
||||
namespace Vista
|
||||
{
|
||||
public partial class PantallaPrincipal : Form
|
||||
{
|
||||
public PantallaPrincipal()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void clientesToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
// Cerrar el formulario secundario actual si hay alguno
|
||||
if (ActiveMdiChild != null)
|
||||
{
|
||||
ActiveMdiChild.Close();
|
||||
}
|
||||
var Frm = new FrmClientes();
|
||||
Frm.MdiParent = this;
|
||||
Frm.Show();
|
||||
|
||||
}
|
||||
|
||||
private void ventasToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (ActiveMdiChild != null)
|
||||
{
|
||||
ActiveMdiChild.Close();
|
||||
}
|
||||
var Frm = new FrmVentas();
|
||||
Frm.MdiParent = this;
|
||||
Frm.Show();
|
||||
}
|
||||
|
||||
private void proveedoresToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (ActiveMdiChild != null)
|
||||
{
|
||||
ActiveMdiChild.Close();
|
||||
}
|
||||
var Frm = new FrmProveedores();
|
||||
Frm.MdiParent = this;
|
||||
Frm.Show();
|
||||
}
|
||||
|
||||
private void productosToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (ActiveMdiChild != null)
|
||||
{
|
||||
ActiveMdiChild.Close();
|
||||
}
|
||||
var Frm = new FrmProductos();
|
||||
Frm.MdiParent = this;
|
||||
Frm.Show();
|
||||
}
|
||||
|
||||
private void remitosToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (ActiveMdiChild != null)
|
||||
{
|
||||
ActiveMdiChild.Close();
|
||||
}
|
||||
var Frm = new FrmRemitos();
|
||||
Frm.MdiParent = this;
|
||||
Frm.Show();
|
||||
}
|
||||
|
||||
private void ordenDeCompraToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (ActiveMdiChild != null)
|
||||
{
|
||||
ActiveMdiChild.Close();
|
||||
}
|
||||
var Frm = new FrmOrdenDeCompra();
|
||||
Frm.MdiParent = this;
|
||||
Frm.Show();
|
||||
}
|
||||
|
||||
private void pedidosPresupuestoToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (ActiveMdiChild != null)
|
||||
{
|
||||
ActiveMdiChild.Close();
|
||||
}
|
||||
var Frm = new FrmPedidosDePresupuestos();
|
||||
Frm.MdiParent = this;
|
||||
Frm.Show();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user