Merge branch 'main' of https://git.ffhartmann.de/felixh/it-projekt into main
This commit is contained in:
9
Form1.cs
9
Form1.cs
@@ -29,16 +29,15 @@ namespace it_projekt
|
||||
|
||||
private void loginBtn_Click(object sender, EventArgs e)
|
||||
{
|
||||
LoadUsersFromTable("","");
|
||||
LoadUsersFromTable("root","");
|
||||
}
|
||||
|
||||
|
||||
|
||||
public static void LoadUsersFromTable(string user, string password)
|
||||
{
|
||||
string connectionString = "server=localhost;database=stammdaten;User Id=" + user + ";Password=" + password + ";";
|
||||
Database test = new Database(connectionString);
|
||||
MessageBox.Show(test.persons.Find(1).Firstname);
|
||||
{
|
||||
Database test = new Database(user, password);
|
||||
MessageBox.Show(test.Person.Firstname);
|
||||
}
|
||||
|
||||
private void dataGrid_CellContentClick(object sender, DataGridViewCellEventArgs e)
|
||||
|
||||
Reference in New Issue
Block a user