예제 #1
0
 private void btn_clave_Click(object sender, EventArgs e)
 {
     try
     {
         BapFormulariosNet.Ayudas.Form_user_admin miForma = new BapFormulariosNet.Ayudas.Form_user_admin();
         miForma.Owner = this;
         miForma.PasaDatos = RecibePermiso;
         miForma.ShowDialog();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
예제 #2
0
        private void btn_clave_Click(object sender, EventArgs e)
        {
            try
            {
                var miForma = new BapFormulariosNet.Ayudas.Form_user_admin();
                miForma.Owner = this;
                miForma.PasaDatos = RecibePermiso;
                miForma.ShowDialog();
                var sw = false;
                sw = Convert.ToBoolean(miForma.ShowDialog());

                if (sw)
                {
                    serdoc.Enabled = true;
                }
                else
                {
                    serdoc.Enabled = false;
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }