예제 #1
0
        private void cerrarSesionToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Close();
            logueo1 l1 = new logueo1();

            l1.Show();
        }
예제 #2
0
        public logueo2(logueo1 anterior, Usuario newuser)
        {
            InitializeComponent();
            this.formanterior = anterior;
            DataTable dt = new DataTable("Roles");

            new Rolsql().obtenerRoles(newuser).Fill(dt);
            cbRoles.DataSource    = dt;
            cbRoles.ValueMember   = "idrol";
            cbRoles.DisplayMember = "nombre";
            unusuario             = newuser;
        }