-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathData.cs
More file actions
138 lines (130 loc) · 3.98 KB
/
Data.cs
File metadata and controls
138 lines (130 loc) · 3.98 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
using DevExpress.Mvvm;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
namespace DXSample {
public class ViewModel {
public List<Contact> Items { get; set; }
public ViewModel() {
Items = new List<Contact>() {
new Contact() {
FirstName = "Carolyn",
LastName = "Baker",
Email = "carolyn.baker@example.com",
Phone = "(555)349-3010",
Address = "1198 Theresa Cir",
City = "Whitinsville",
State = "MA",
Zip = "01582"
},
new Contact() {
FirstName = "Amber",
LastName = "Seaman",
Phone = "(555)698-4285",
Address = "28700 S Main St",
City = "Wilsonville",
State = "AL",
Zip = "35188"
},
new Contact() {
FirstName = "Annie",
LastName = "Vicars",
Email = "annie.vicars@example.com",
Phone = "(555)922-1349",
Address = "7267 New York Ave",
City = "Jersey City",
State = "NJ",
Zip = "07306"
},
new Contact() {
FirstName = "Darlene",
LastName = "Catto",
Email = "darlene.catto@example.com",
Phone = "(555)752-0582",
Address = "32125 4th St NW #210",
City = "Washington",
State = "DC",
Zip = "20001"
},
new Contact() {
FirstName = "Angela",
LastName = "Gross",
Email = "angela.gross@example.com",
Phone = "(555)247-1252",
Address = "8723 Chicago Ave",
City = "Nederland",
State = "TX",
Zip = "77620"
}
};
}
}
public class Contact : BindableBase {
string _FirstName;
public string FirstName {
get { return _FirstName; }
set {
_FirstName = value;
RaisePropertyChanged(() => FirstName);
}
}
string _LastName;
public string LastName {
get { return _LastName; }
set {
_LastName = value;
RaisePropertyChanged(() => LastName);
}
}
string _Email;
public string Email {
get { return _Email; }
set {
_Email = value;
RaisePropertyChanged(() => Email);
}
}
string _Phone;
public string Phone {
get { return _Phone; }
set {
_Phone = value;
RaisePropertyChanged(() => Phone);
}
}
string _Address;
public string Address {
get { return _Address; }
set {
_Address = value;
RaisePropertyChanged(() => Address);
}
}
string _City;
public string City {
get { return _City; }
set {
_City = value;
RaisePropertyChanged(() => City);
}
}
string _State;
public string State {
get { return _State; }
set {
_State = value;
RaisePropertyChanged(() => State);
}
}
string _Zip;
public string Zip {
get { return _Zip; }
set {
_Zip = value;
RaisePropertyChanged(() => Zip);
}
}
}
}