-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathModel.cs
34 lines (34 loc) · 1.21 KB
/
Model.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
namespace AdvancedColumnLayout {
public class Employee {
public int Id { get; set; }
public int ParentId { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }
public string JobTitle { get; set; }
public string Phone { get; set; }
public string EmailAddress { get; set; }
public string AddressLine1 { get; set; }
public string City { get; set; }
public string PostalCode { get; set; }
public string CountryRegionName { get; set; }
public string GroupName { get; set; }
public DateTime BirthDate { get; set; }
public DateTime HireDate { get; set; }
public string Gender { get; set; }
public string MaritalStatus { get; set; }
public string ImageData { get; set; }
public string FullName {
get {
return FirstName + " " + LastName;
}
}
public ImageSource Image {
get {
byte[] bytes = Convert.FromBase64String(ImageData);
MemoryStream ms = new MemoryStream(bytes);
return ImageSource.FromStream(() => ms);
}
}
}
}