protected override void EndVisit(IGroupListForms cn)
        {
            var p = (GroupListForms)cn;

            foreach (var t in p.ListForms)
            {
                t.IsMarkedForDeletion = false;
                t.IsNew = false;
            }
        }
Esempio n. 2
0
 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;
     }
 }
Esempio n. 3
0
        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);
        }
Esempio n. 4
0
        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);
                    }
                }
            }
        }
Esempio n. 5
0
 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);
 }
Esempio n. 6
0
 protected virtual void Visit(IGroupListForms parent, List <IForm> diff_lst)
 {
 }
Esempio n. 7
0
 protected virtual void EndVisit(IGroupListForms cn)
 {
 }
Esempio n. 8
0
 protected virtual void BeginVisit(IGroupListForms cn)
 {
 }