Пример #1
0
        private void btnMostrar_Click(object sender, EventArgs e)
        {
            Logueo logueo = new Logueo();

            this.Close();
            logueo.Show();
        }
Пример #2
0
        private void pictureBox2_Click(object sender, EventArgs e)
        {
            Logueo logueo = new Logueo();

            if (MessageBox.Show("¿Estás seguro que desea cerrar sesion?", "", MessageBoxButtons.OKCancel, MessageBoxIcon.Question) == DialogResult.OK)
            {
                this.Close();
                logueo.Show();
            }
        }