private void btnCancelar_Click(object sender, EventArgs e)
        {
            Funciones abrir = new Funciones();

            abrir.Show();
            this.Close();
        }
 private void btnGuardar_Click(object sender, EventArgs e)
 {
     formFun = new Funciones();
     if (NuevaFuncion == true)
     {
         servFun.AgregarFuncion(RecuperarDatos());
         formFun.Show();
         formFun.LlenarComponentes();
         this.Close();
     }
     else if (NuevaFuncion == false)
     {
         servFun.ModificarFuncion(RecuperarDatos());
         formFun.Show();
         formFun.LlenarComponentes();
         this.Close();
     }
 }
        private void btnEliminar_Click(object sender, EventArgs e)
        {
            formFun = new Funciones();
            DialogResult resp = MessageBox.Show("¿Está seguro que desea eliminar esta función?", "Confimración", MessageBoxButtons.YesNo, MessageBoxIcon.Warning);

            switch (resp)
            {
            case DialogResult.Yes:
                servFun.BorrarFuncion(RecuperarDatos());
                formFun.LlenarComponentes();
                formFun.Show();
                this.Close();
                break;

            case DialogResult.No:
                this.Close();
                break;
            }
        }
Beispiel #4
0
        private void btnFunciones_Click(object sender, EventArgs e)
        {
            Funciones fun = new Funciones();

            fun.Show();
        }