rename department short and long fields,
This commit is contained in:
2
Form1.cs
2
Form1.cs
@@ -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;
|
||||||
|
|||||||
10
Person.cs
10
Person.cs
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user