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;
            }
        }
Ejemplo n.º 3
0
 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;
     }
 }
Ejemplo n.º 4
0
        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);
        }
Ejemplo n.º 5
0
        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);
                    }
                }
            }
        }
Ejemplo n.º 6
0
 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);
 }
Ejemplo n.º 7
0
 protected virtual void Visit(IGroupListProperties parent, List <IProperty> diff_lst)
 {
 }
Ejemplo n.º 8
0
 protected virtual void EndVisit(IGroupListProperties cn)
 {
 }
Ejemplo n.º 9
0
 protected virtual void BeginVisit(IGroupListProperties cn)
 {
 }