db_AI-4/csharp/marketconnectionNET2.0/db_AI-4_V3/db_AI-4/LoginForm.cs

46 lines
964 B
C#
Raw Normal View History

2017-07-26 18:18:37 +02:00
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace db_AI_4
{
public partial class LoginForm : Form
{
public LoginForm()
{
InitializeComponent();
}
private void RegistrationButton_Click(object sender, EventArgs e)
{
DataAccess db = new DataAccess();
db.InsertMember(EmailLoginBox.Text, PasswordLoginBox.Text);
EmailLoginBox.Text = "";
PasswordLoginBox.Text = "";
}
private void LoginButton_Click(object sender, EventArgs e)
{
DataAccess db = new DataAccess();
db.CheckLogin(EmailLoginBox.Text, PasswordLoginBox.Text);
}
private void LoginForm_Load(object sender, EventArgs e)
{
}
}
}