protected virtual void LazyInitComp1() { if (this.comp1 != null) { return; } this.comp1 = new Type2(); AddComp1Listeners(this.comp1); }
protected virtual bool SetProp1(Type2 prop1) { if (this.prop1 == prop1) { return(false); } NotifyPropertyChanging(PROPERTIES.PROP1); RemoveProp1Listeners(this.prop1); this.prop1 = prop1; AddProp1Listeners(this.prop1); NotifyPropertyChanged(PROPERTIES.PROP1); return(true); }
public Type2(Type2 other) : base(other) { }
protected virtual bool SetProp1(Type2 prop1) { if (this.prop1 == prop1) return false; NotifyPropertyChanging(PROPERTIES.PROP1); RemoveProp1Listeners(this.prop1); this.prop1 = prop1; AddProp1Listeners(this.prop1); NotifyPropertyChanged(PROPERTIES.PROP1); return true; }
protected virtual void LazyInitComp1() { if (this.comp1 != null) return; this.comp1 = new Type2(); AddComp1Listeners(this.comp1); }
public virtual void CopyFrom(Type2 other) { Name = other.Name; }