Esempio n. 1
0
		protected virtual void LazyInitCompLazy()
		{
			if (this.compLazy != null)
				return;
				
			this.compLazy = new Type2();
			AddCompLazyListeners(this.compLazy);
		}
Esempio n. 2
0
		protected BaseType1(Type2 prop2, int prop4, string prop5)
		{
			AddProp1Listeners(this.prop1);
			this.comp = new Type2();
			AddCompListeners(this.comp);
			this.prop2 = prop2;
			AddProp2Listeners(this.prop2);
			this.prop4 = prop4;
			this.prop5 = prop5;
			ValidateProp2(this.prop2);
			ValidateProp5(this.prop5);
		}
Esempio n. 3
0
		private void ValidateProp2(Type2 value)
		{
#pragma warning disable 219
			var property = PROPERTIES.PROP2;
#pragma warning restore 219
			
#pragma warning disable 472
// ReSharper disable ConditionIsAlwaysTrueOrFalse
			if (value == null)
				throw new ArgumentNullException(property);
// ReSharper restore ConditionIsAlwaysTrueOrFalse
#pragma warning restore 472
		}
Esempio n. 4
0
		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;
		}
Esempio n. 5
0
		protected virtual bool SetProp2(Type2 prop2)
		{
			if (this.prop2 == prop2)
				return false;
			ValidateProp2(prop2);
			
			NotifyPropertyChanging(PROPERTIES.PROP2);
			
			RemoveProp2Listeners(this.prop2);
			
			this.prop2 = prop2;
			
			AddProp2Listeners(this.prop2);
			
			NotifyPropertyChanged(PROPERTIES.PROP2);
			
			return true;
		}
Esempio n. 6
0
 public Type2(Type2 other)
     : base(other)
 {
 }
Esempio n. 7
0
		private void OnDeserializing(StreamingContext context)
		{
			this.comp = new Type2();
		}
Esempio n. 8
0
 public virtual void CopyFrom(Type2 other)
 {
     Name = other.Name;
 }
Esempio n. 9
0
		public Type1(Type2 prop2, int prop4, string prop5)
		: base(prop2, prop4, prop5)
		{
		}
Esempio n. 10
0
		public virtual void CopyFrom(Type2 other)
		{
			Name = other.Name;
		}
Esempio n. 11
0
 public Type1(Type2 prop2, int prop4, string prop5)
     : base(prop2, prop4, prop5)
 {
 }
Esempio n. 12
0
		public Type2(Type2 other)
		: base(other)
		{
		}