protected override void BeginVisit(IGroupListProperties t) { if (t is INodeGenSettings) { _act(t as INodeGenSettings); } }
protected override void EndVisit(IGroupListProperties cn) { var p = (GroupListProperties)cn; foreach (var t in p.ListProperties) { t.IsMarkedForDeletion = false; t.IsNew = false; } }
private void VisitProperties(IGroupListProperties parent, List <vSharpStudio.common.IProperty> lst) { this.Visit(parent, lst); foreach (var t in lst) { this.currProp = t; this.Visit(t); if (_act != null) { _act(this, t); } this.currProp = null; } }
protected override void Visit(IGroupListProperties parent, List <IProperty> diff_lst) { Contract.Requires(diff_lst != null); Contract.Requires(parent != null); List <Property> lst = new List <Property>(); foreach (var t in diff_lst) { lst.Add((Property)t); } var grp = (GroupListProperties)parent; grp.ListProperties.Clear(); grp.ListProperties.AddRange(lst); }
protected override void EndVisit(IGroupListProperties cn) { var p = (GroupListProperties)cn; if (p.IsHasMarkedForDeletion && p.IsHasNew) { var lst = p.ListProperties.ToList(); foreach (var t in lst) { if (t.IsMarkedForDeletion && t.IsNew) { p.ListProperties.Remove(t); } } } }
private void VisitProperties(IGroupListProperties parent, IEnumerable <IProperty> lst) { this.BeginVisit(parent); if (_act != null) { _act(this, parent); } foreach (var t in lst) { this.currProp = t; this.BeginVisit(t); if (_act != null) { _act(this, t); } this.EndVisit(t); this.currProp = null; } this.EndVisit(parent); }
protected virtual void Visit(IGroupListProperties parent, List <IProperty> diff_lst) { }
protected virtual void EndVisit(IGroupListProperties cn) { }
protected virtual void BeginVisit(IGroupListProperties cn) { }