diff --git a/Database.cs b/Database.cs index d1db7dd..b1e929a 100644 --- a/Database.cs +++ b/Database.cs @@ -9,7 +9,7 @@ namespace it_projekt { private static Database _database; public List Persons { get; set; } - private Database(String username, String password) + private Database(string username, string password) { string connectionString = "server=localhost;port=3306;database=stammdaten;User Id=" + username + ";Password=" + password + ";"; MySqlConnection connection = new MySqlConnection(connectionString); diff --git a/Form1.cs b/Form1.cs index 0ed11e6..1f505c6 100644 --- a/Form1.cs +++ b/Form1.cs @@ -30,7 +30,6 @@ namespace it_projekt private void loginBtn_Click(object sender, EventArgs e) { LoadUsersFromTable(this.userTxt.Text, this.passTxt.Text); - } @@ -47,6 +46,8 @@ namespace it_projekt { this.dataGrid.Rows.Add(person.Id, person.Firstname, person.Lastname, person.department_short, person.department_long, person.CreationDate, false); } + this.loginBtn.Enabled = false; + this.exportBtn.Enabled = true; } }