fixes export being impossible
This commit is contained in:
3
Form1.cs
3
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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user