Com.Aote.ObjectTools.GeneralObject.GeneralObject C# (CSharp) Method

GeneralObject() public method

public GeneralObject ( ) : System
return System
        public GeneralObject()
        {
            //监听对象的动态属性变化事件,非动态属性不影响对象的是否修改状态。当对象产生动态属性变化事件时
            this.DynamicPropertyChanged += (o, e) => 
            { 
                IsModified = true;
                IsInit = false;
            };
            //监听初始话事件完成,完成后重新自己做一次New的过程
            this.InitFinished += (o, e) =>
            {
                this.New();
            };
        }