-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDataGridModel.cs
45 lines (38 loc) · 1.11 KB
/
DataGridModel.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
35
36
37
38
39
40
41
42
43
44
45
using System;
using ImageService.Contracts;
using System.Collections.ObjectModel;
using System.ComponentModel;
namespace WpfClient
{
public class DataGridModel : INotifyPropertyChanged
{
private ObservableCollection<ImageFileData> imagesFileData;
public DataGridModel()
{
imagesFileData = new ObservableCollection<ImageFileData>();
}
public ObservableCollection<ImageFileData> ImagesFileData
{
get
{
return imagesFileData;
}
set
{
if (imagesFileData != value)
{
imagesFileData = value;
NotifyPropertyChanged("ImagesFileData");
}
}
}
private void NotifyPropertyChanged(String info)
{
if (PropertyChanged != null)
PropertyChanged(this, new PropertyChangedEventArgs(info));
}
#region INotifyPropertyChanged implementation
public event PropertyChangedEventHandler PropertyChanged;
#endregion
}
}