private void BtnCreateBSC_Click(object sender, EventArgs e)
        {
            bool     ActivoBSC = GenerateActive(Convert.ToInt32(CmbxAgno.Text));
            DateTime year      = new DateTime(Convert.ToInt32(CmbxAgno.Text), 01, 01);

            ObjBSC           = new E_BalancedScorecard();
            ObjBSC.BSNombre  = TxtCMI.Text = TxtCMI.Text.Trim();
            ObjBSC.N_Empresa = TxtEmpresa.Text = TxtEmpresa.Text.Trim();
            ObjBSC.Vision    = TxtEmpresa.Text = TxtEmpresa.Text.Trim();
            ObjBSC.Mision    = TxtMision.Text = TxtMision.Text.Trim();
            ObjBSC.Agno      = year;
            ObjBSC.Active    = ActivoBSC;
            if (new B_Menu().CreateBSC(ObjBSC))
            {
                //MessageBox.Show("Cuadro de Mando Integral registrado con éxito");
                this.Hide();
                FormMenu menu = new FormMenu();
                menu.Show();
            }
        }
        private void BtnAccess_Click(object sender, EventArgs e)
        {
            FormMenu  frmenu;
            DataTable dt = new DataTable();

            ObjUser          = new E_User();
            ObjLogIn         = new B_Log();
            ObjUser.Username = TxtUser.Text;
            ObjUser.Password = TxtPass.Text;
            dt = ObjLogIn.Business_Log(ObjUser);

            if (dt.Rows.Count > 0)
            {
                B_Log.SaveCredentials(Convert.ToInt32(dt.Rows[0][0]), Convert.ToInt32(dt.Rows[0][1]), dt.Rows[0][2].ToString(), dt.Rows[0][3].ToString(), dt.Rows[0][4].ToString(), dt.Rows[0][5].ToString());
                this.Hide();
                frmenu = new FormMenu();
                frmenu.Show();
            }
            else
            {
                MessageBox.Show("Usuario no encontrado");
            }
        }
        private void FormCreateBSC_FormClosing(object sender, FormClosingEventArgs e)
        {
            FormMenu menu = new FormMenu();

            menu.Show();
        }