private void btnJavascript_Click(object sender, EventArgs e) { Principal frmPrincipal = Application.OpenForms.OfType <Principal>().FirstOrDefault(); if (frmPrincipal != null) { frmPrincipal.AbrirFormEnPanel(new SubCategoriesJs()); this.Close(); } }
private void btnEditores_Click(object sender, EventArgs e) { Principal frmPrincipal = Application.OpenForms.OfType <Principal>().FirstOrDefault(); if (frmPrincipal != null) { frmPrincipal.AbrirFormEnPanel(new CodeEditors()); this.Close(); } }
private void btnAceptar_Click(object sender, EventArgs e) { Principal frmP = new Principal(); if (form is Principal) { frmP.Show(); this.Close(); } else { frmP.AbrirFormEnPanel(frmP); } }