protected override void EndVisit(IGroupListForms cn) { var p = (GroupListForms)cn; foreach (var t in p.ListForms) { t.IsMarkedForDeletion = false; t.IsNew = false; } }
private void VisitForms(IGroupListForms parent, List <IForm> lst) { this.Visit(parent, lst); foreach (var t in lst) { this.currForm = t; this.Visit(t); if (_act != null) { _act(this, t); } this.currForm = null; } }
protected override void Visit(IGroupListForms parent, List <IForm> diff_lst) { Contract.Requires(diff_lst != null); Contract.Requires(parent != null); List <Form> lst = new List <Form>(); foreach (var t in diff_lst) { lst.Add((Form)t); } var grp = (GroupListForms)parent; grp.ListForms.Clear(); grp.ListForms.AddRange(lst); }
protected override void EndVisit(IGroupListForms cn) { var p = (GroupListForms)cn; if (p.IsHasMarkedForDeletion && p.IsHasNew) { var lst = p.ListForms.ToList(); foreach (var t in lst) { if (t.IsMarkedForDeletion && t.IsNew) { p.ListForms.Remove(t); } } } }
private void VisitForms(IGroupListForms parent, IEnumerable <IForm> lst) { this.BeginVisit(parent); if (_act != null) { _act(this, parent); } foreach (var t in lst) { this.currForm = t; this.BeginVisit(t); if (_act != null) { _act(this, t); } this.EndVisit(t); this.currForm = null; } this.EndVisit(parent); }
protected virtual void Visit(IGroupListForms parent, List <IForm> diff_lst) { }
protected virtual void EndVisit(IGroupListForms cn) { }
protected virtual void BeginVisit(IGroupListForms cn) { }