Exemplo n.º 1
0
        private void BtnRegresar_Click(object sender, EventArgs e)
        {
            this.Close();

            FmLogin fmLogin = new FmLogin();

            fmLogin.Show();
        }
        private void PictureBox4_Click(object sender, EventArgs e)
        {
            Bitacora bitacora = new Bitacora(fecha_ingreso, LblHora.Text, Int32.Parse(idUsuarioLogin));

            bitacora.EjecutarBitacora();

            if (this.PnlEscritorio.Controls.Count > 0)
            {
                this.PnlEscritorio.Controls.RemoveAt(0);
            }

            this.Close();

            FmLogin fmLogin = new FmLogin();

            fmLogin.Show();
        }
        private void BtnRegresar_Click(object sender, EventArgs e)
        {
            /*if (PnlEscritorioPrincipal.Controls.Count > 0)
             *  this.PnlEscritorioPrincipal.Controls.RemoveAt(0);
             *
             * Form formulario1 = new FmHorario() as Form; //Convierte Formulario a Formulario Interno
             * formulario1.TopLevel = false;
             * formulario1.Dock = DockStyle.Fill;
             * this.PnlEscritorioPrincipal.Controls.Add(formulario1);
             * this.PnlEscritorioPrincipal.Tag = formulario1;
             * formulario1.Show();*/
            //LblTitulo.Text = "Estudiante";

            this.Close();

            FmLogin fmLogin = new FmLogin();

            fmLogin.Show();
        }