예제 #1
0
        private void btnJavascript_Click(object sender, EventArgs e)
        {
            Principal frmPrincipal = Application.OpenForms.OfType <Principal>().FirstOrDefault();

            if (frmPrincipal != null)
            {
                frmPrincipal.AbrirFormEnPanel(new SubCategoriesJs());
                this.Close();
            }
        }
예제 #2
0
        private void btnEditores_Click(object sender, EventArgs e)
        {
            Principal frmPrincipal = Application.OpenForms.OfType <Principal>().FirstOrDefault();

            if (frmPrincipal != null)
            {
                frmPrincipal.AbrirFormEnPanel(new CodeEditors());
                this.Close();
            }
        }
예제 #3
0
        private void btnAceptar_Click(object sender, EventArgs e)
        {
            Principal frmP = new Principal();

            if (form is Principal)
            {
                frmP.Show();
                this.Close();
            }
            else
            {
                frmP.AbrirFormEnPanel(frmP);
            }
        }