rename department short and long fields,

This commit is contained in:
2022-05-16 18:53:01 +02:00
parent f362d7b2a0
commit 828e6c69fd
2 changed files with 6 additions and 6 deletions

View File

@@ -45,7 +45,7 @@ namespace it_projekt
else { else {
foreach (Person person in db.Persons) foreach (Person person in db.Persons)
{ {
this.dataGrid.Rows.Add(person.Id, person.Firstname, person.Lastname, person.department_short, person.department_long, person.CreationDate, false); this.dataGrid.Rows.Add(person.Id, person.Firstname, person.Lastname, person.Department_short, person.Department_long, person.CreationDate, false);
} }
this.loginBtn.Enabled = false; this.loginBtn.Enabled = false;
this.exportBtn.Enabled = true; this.exportBtn.Enabled = true;

View File

@@ -12,21 +12,21 @@ namespace it_projekt
public string Lastname { get; set; } public string Lastname { get; set; }
public string Firstname { get; set; } public string Firstname { get; set; }
public DateTime CreationDate { get; set; } public DateTime CreationDate { get; set; }
public string department_short { get; set; } public string Department_short { get; set; }
public string department_long { get; set; } public string Department_long { get; set; }
public Person() public Person()
{ {
} }
public Person(string Id, string Lastname, string Firstname, DateTime CreationDate, string department_short, string department_long) public Person(string Id, string Lastname, string Firstname, DateTime CreationDate, string Department_short, string Department_long)
{ {
this.Id = Id; this.Id = Id;
this.Lastname = Lastname; this.Lastname = Lastname;
this.Firstname = Firstname; this.Firstname = Firstname;
this.CreationDate = CreationDate; this.CreationDate = CreationDate;
this.department_short = department_short; this.Department_short = Department_short;
this.department_long = department_long; this.Department_long = Department_long;
} }
} }
} }