1+ #region Copyright Syncfusion Inc. 2001 - 2016
2+ // Copyright Syncfusion Inc. 2001 - 2016. All rights reserved.
3+ // Use of this code is subject to the terms of our license.
4+ // A copy of the current license can be obtained at any time by e-mailing
5+ // licensing@syncfusion.com. Any infringement will be prosecuted under
6+ // applicable laws.
7+ #endregion
8+ using System ;
9+ using System . Collections . Generic ;
10+ using System . Linq ;
11+ using System . Text ;
12+ using Syncfusion . Windows . Shared ;
13+ using System . ComponentModel ;
14+ using System . ComponentModel . DataAnnotations ;
15+
16+ namespace OnDemandLoading
17+ {
18+ public class EmployeeInfo : NotificationObject //, IComparable<EmployeeInfo>
19+ {
20+ int _id ;
21+ /// <summary>
22+ /// Gets or sets the ID.
23+ /// </summary>
24+ /// <value>The ID.</value>
25+ public int ID
26+ {
27+ get
28+ {
29+ return _id ;
30+ }
31+ set
32+ {
33+ _id = value ;
34+ RaisePropertyChanged ( "ID" ) ;
35+ }
36+ }
37+ string _firstName ;
38+
39+ /// <summary>
40+ /// Gets or sets the first name.
41+ /// </summary>
42+ /// <value>The first name.</value>
43+ public string FirstName
44+ {
45+ get
46+ {
47+ return _firstName ;
48+ }
49+ set
50+ {
51+ _firstName = value ;
52+ RaisePropertyChanged ( "FirstName" ) ;
53+ }
54+ }
55+ string _lastName ;
56+
57+ /// <summary>
58+ /// Gets or sets the last name.
59+ /// </summary>
60+ /// <value>The last name.</value>
61+ public string LastName
62+ {
63+ get
64+ {
65+ return _lastName ;
66+ }
67+ set
68+ {
69+ _lastName = value ;
70+ RaisePropertyChanged ( "LastName" ) ;
71+ }
72+ }
73+ string _department ;
74+
75+ /// <summary>
76+ /// Gets or sets the department.
77+ /// </summary>
78+ /// <value>The department.</value>
79+ public string Department
80+ {
81+ get
82+ {
83+ return _department ;
84+ }
85+ set
86+ {
87+ _department = value ;
88+ RaisePropertyChanged ( "Department" ) ;
89+ }
90+ }
91+ private string _title ;
92+
93+ /// <summary>
94+ /// Gets or sets the title.
95+ /// </summary>
96+ /// <value>The title.</value>
97+ public string Title
98+ {
99+ get
100+ {
101+ return _title ;
102+ }
103+ set
104+ {
105+ _title = value ;
106+ RaisePropertyChanged ( "Title" ) ;
107+ }
108+ }
109+
110+ double ? _salary ;
111+ /// <summary>
112+ /// Gets or sets the salary.
113+ /// </summary>
114+ /// <value>The salary.</value>
115+ public double ? Salary
116+ {
117+ get
118+ {
119+ return _salary ;
120+ }
121+ set
122+ {
123+ _salary = value ;
124+ RaisePropertyChanged ( "Salary" ) ;
125+ }
126+ }
127+
128+ int _reportsTo ;
129+ /// <summary>
130+ /// Gets or sets the reports to.
131+ /// </summary>
132+ /// <value>The reports to.</value>
133+ public int ReportsTo
134+ {
135+ get
136+ {
137+ return _reportsTo ;
138+ }
139+ set
140+ {
141+ _reportsTo = value ;
142+ RaisePropertyChanged ( "ReportsTo" ) ;
143+ }
144+ }
145+
146+ #region IComparable<Employee> Members
147+
148+ //public int CompareTo(EmployeeInfo other)
149+ //{
150+ // // return this.reportsTo - other.reportsTo;
151+ // if (other == null)
152+ // return -1;
153+
154+ // return this.ReportsTo.CompareTo(other.ReportsTo);
155+ //}
156+
157+ #endregion
158+ }
159+ }
0 commit comments