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);
        }
Exemple #3
0
 public Type2(Type2 other)
     : base(other)
 {
 }
Exemple #4
0
		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;
		}
Exemple #8
0
 public virtual void CopyFrom(Type2 other)
 {
     Name = other.Name;
 }