using System;

using System.Collections.Generic;

using System.Data;

using System.Data.SQLite;

using System.Linq;

using System.Text;

using System.Threading.Tasks;

using System.Windows.Forms;

 

 

namespace Prueba.Clases

{

    class usuarios

    {

 

        public void mostrar(DataGridView dv)

        {

            

            conexion con = new conexion();

            

 

            string sql ="SELECT USUARIO, CONTRA as contraseña FROM USUARIOS";

            SQLiteDataAdapter db = new SQLiteDataAdapter(sql, con.sqlCon);

 

            DataSet ds = new DataSet();

            ds.Reset();

 

            DataTable dt = new DataTable();

            db.Fill(ds);

            dt = ds.Tables[0];

 

            dv.DataSource = dt;

            

            // CERRAMOS LA CONEXION

            con.cerrarConexion();

        }

    }

}