database connection working

This commit is contained in:
2022-05-09 14:20:09 +02:00
parent c2ec941eae
commit 65f1e74db8
2 changed files with 43 additions and 22 deletions

View File

@@ -36,8 +36,8 @@ namespace it_projekt
public static void LoadUsersFromTable(string user, string password)
{
Database test = new Database(user, password);
MessageBox.Show(test.Person.Firstname);
Database db = new Database(user, password);
MessageBox.Show(db.Persons.ToString());
}
private void dataGrid_CellContentClick(object sender, DataGridViewCellEventArgs e)