prueba 2?
This commit is contained in:
@@ -8,7 +8,7 @@ using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
using System.Data.SQLite;
|
||||
|
||||
using compabetov2.database;
|
||||
|
||||
namespace compabetov2
|
||||
{
|
||||
@@ -41,19 +41,23 @@ namespace compabetov2
|
||||
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
if (txtusuario.Text.Trim() == "" && txtcontraseña.Text.Trim() == "")
|
||||
if (service.iniciarSesion(new database.modelos.Usuario(txtusuario.Text, txtcontraseña.Text)))
|
||||
{
|
||||
|
||||
MessageBox.Show("ERROR TODO VACIO");
|
||||
MenuPrincipal principal = new MenuPrincipal();
|
||||
|
||||
principal.Show();
|
||||
|
||||
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
else {
|
||||
|
||||
string query = "SELECT * FROM login WHERE ";
|
||||
SQLiteConnection conn
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -61,10 +65,13 @@ namespace compabetov2
|
||||
|
||||
}
|
||||
|
||||
private void textBox1_TextChanged(object sender, EventArgs e)
|
||||
private void login_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user