public static EstilosForm GetInstancia() { if (instancia == null) { instancia = new EstilosForm(); instancia.FormClosed += form_Close; } return(instancia); }
private void ManejarEstilos() { EstilosForm frm = EstilosForm.GetInstancia(DI.Create <IServicioEstilo>()); frm.MdiParent = this; frm.WindowState = FormWindowState.Maximized; frm.Dock = DockStyle.Fill; frm.Show(); }
private static void form_Close(object sender, FormClosedEventArgs e) { instancia = null; }