private void Comprobacion()
        {
            FrmComprobacion frm = new FrmComprobacion();

            frm.StartPosition = FormStartPosition.CenterScreen;
            frm.FormClosed   += Frm_FormClosed;
            frm.ShowDialog();
        }
Example #2
0
        private void Comprobacion()
        {
            FrmComprobacion frm = new FrmComprobacion();

            frm.StartPosition = FormStartPosition.CenterScreen;
            frm.ShowDialog();
            if (frm.DialogResult == DialogResult.OK)
            {
                this.Cargo_empleado = frm.Cargo_empleado;
            }
        }
        private DialogResult Comprobacion()
        {
            FrmComprobacion frm = new FrmComprobacion
            {
                StartPosition = FormStartPosition.CenterScreen
            };

            frm.FormClosed += FrmComprobacion_FormClosed;
            frm.ShowDialog();
            return(frm.DialogResult);
        }