ClothNumber.cs 1.03 KB
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));
        //    }
        //}
    }
}