ClothNumber.cs
1.03 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
using System.ComponentModel;
namespace OS.Spin.ViewModle.Models
{
public class ClothNumber : INotifyPropertyChanged
{
private string _clothNum; //动态改变衣服编号
public event PropertyChangedEventHandler PropertyChanged;
public string clothNum
{
get { return this._clothNum; }
set
{
//_clothNum = value;
//OnPropertyChanged(clothNum);
if (this._clothNum != value)
{
this._clothNum = value;
if (PropertyChanged != null)
{
PropertyChanged(this, new PropertyChangedEventArgs(clothNum));
}
}
}
}
//protected void OnPropertyChanged(string strPropertyInfo)
//{
// if (PropertyChanged != null)
// {
// PropertyChanged(this, new PropertyChangedEventArgs(strPropertyInfo));
// }
//}
}
}