public PIMPath AddContextPath(int index) { PIMPath path = new _PIMPath(); context.Insert(index, path); return(path); }
public PIMPath AddContextPath() { PIMPath path = new _PIMPath(); context.Add(path); return(path); }
/// <summary> /// Creates a new nesting join with the core class and parent set and empty /// child and context paths. /// </summary> /// <param name="CoreClass">References the core class</param> public _NestingJoing(PIMClass CoreClass) { coreClass = CoreClass; _PIMPath tmp = new _PIMPath(); tmp.Join = this; parent = tmp; tmp = new _PIMPath(); tmp.Join = this; child = tmp; context = new ObservableCollection <PIMPath>(); context.CollectionChanged += OnContextChanged; }