예제 #1
0
        private void DgbUsuarios_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            DataGridViewRow row = this.DgbUsuarios.SelectedRows[0];
            int             id  = Int32.Parse(row.Cells[0].Value.ToString());
            var             u   = (from user in entities.Usuario
                                   where user.ID_USUARIO == id
                                   select user);
            FrmUsuarios frm = new FrmUsuarios();

            frm.usuario = u.FirstOrDefault();
            frm.ShowDialog();
        }
예제 #2
0
        private void cmdAgregar_Click(object sender, EventArgs e)
        {
            FrmUsuarios frm = new FrmUsuarios();

            frm.ShowDialog();
        }