diff --git a/Form1.cs b/Form1.cs
index d182f35..ba1a545 100644
--- a/Form1.cs
+++ b/Form1.cs
@@ -27,16 +27,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)
diff --git a/Person.cs b/Person.cs
index 34bc9da..15bf913 100644
--- a/Person.cs
+++ b/Person.cs
@@ -8,9 +8,17 @@ namespace it_projekt
{
class Person
{
- public int Id { get; set; }
+ public string Id { get; set; }
public string Lastname { get; set; }
public string Firstname { get; set; }
public DateTime CreationDate { get; set; }
+
+ public Person(string Id, string Lastname, string Firstname, DateTime CreationDate)
+ {
+ this.Id = Id;
+ this.Lastname = Lastname;
+ this.Firstname = Firstname;
+ this.CreationDate = CreationDate;
+ }
}
}
diff --git a/README.md b/README.md
index bc5347d..fc0857b 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1 @@
# it-projekt
-
-SUPER PROJEKT, ICH SAGS EUCH, schwöre!
-# OK Cool
\ No newline at end of file
diff --git a/it-projekt.csproj b/it-projekt.csproj
index 1c42316..2587183 100644
--- a/it-projekt.csproj
+++ b/it-projekt.csproj
@@ -7,10 +7,8 @@
true
-
-
-
-
+
+
\ No newline at end of file