Beispiel #1
0
        private void BLogin_Click(object sender, EventArgs e)
        {
            Logueo childForm = new Logueo();

            usuarioActual     = childForm.UsuarioActivo;
            childForm.Visible = true;
            this.Visible      = false;
        }
Beispiel #2
0
        private void logueoToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Logueo childForm = new Logueo();

            this.Close();
            this.Visible      = false;
            childForm.Visible = false;
            if (childForm.ShowDialog() == DialogResult.OK)
            {
                usuarioActual = childForm.UsuarioActivo;
            }
        }