private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { FormClientes FCliente = new FormClientes(); FCliente.MdiParent = Principal.ActiveForm; FCliente.Show(); }
private void clienteToolStripMenuItem_Click(object sender, EventArgs e) { FormClientes Fomulario1 = new FormClientes(); Fomulario1.MdiParent = this; Fomulario1.Show(); }
public static FormClientes ObtenerInstancia() { if (Instancia == null) { Instancia = new FormClientes(); Instancia.FormClosed += new FormClosedEventHandler(reset);//SOLO PARA FORMULARIOS } return(Instancia); }
private void Admin_Data(object sender, EventArgs e) { FormClientes frm = FormClientes.ObtenerInstancia(); InstanciaSingleton(frm); }
//FIN SINGLETON private static void reset(object sender, FormClosedEventArgs e)//SOLO PARA FORMULARIOS { Instancia = null; }