Ejemplo n.º 1
0
		public static void Copy(SwitchableObservableCollection<FieldValue> source, SwitchableObservableCollection<FieldValue> target)
		{
			if (source != null && target != null)
			{
				target.IsObserving = false;
				foreach (var sourceRecord in source)
				{
					var targetRecord = new FieldValue();
					Copy(sourceRecord, ref targetRecord);
					target.Add(targetRecord);
				}
				target.IsObserving = true;
			}
		}
Ejemplo n.º 2
0
		public static void Copy(SwitchableObservableCollection<Category> source, ref SwitchableObservableCollection<Category> target, IList<FieldDescription> allFldDscs)
		{
			if (source != null && target != null)
			{
				target.IsObserving = false;
				target.Clear();
				foreach (var sourceRecord in source)
				{
					var targetRecord = new Category();
					Copy(sourceRecord, ref targetRecord, allFldDscs);
					target.Add(targetRecord);
				}
				target.IsObserving = true;
			}
		}
Ejemplo n.º 3
0
		internal static void Copy(SwitchableObservableCollection<FieldDescription> source, ref SwitchableObservableCollection<FieldDescription> target)
		{
			if (source != null && target != null)
			{
				target.IsObserving = false;
				target.Clear();
				foreach (var sourceRecord in source)
				{
					var targetRecord = new FieldDescription();
					Copy(sourceRecord, ref targetRecord);
					target.Add(targetRecord);
				}
				target.IsObserving = true;
			}
		}