Exemplo n.º 1
0
 void IActivityViewContainer.Add(ActivityView view, string scope)
 {
     if (scope == "Body")
     {
         this.Body = view;
     } else if (scope == "CancellationHandler")
     {
         this.CancellationHandler = view;
     }
 }
Exemplo n.º 2
0
 void IActivityViewContainer.Add(ActivityView view, string scope)
 {
     if (scope == "Body")
     {
         this.Body = view;
     }
     else if (scope == "CancellationHandler")
     {
         this.CancellationHandler = view;
     }
 }
Exemplo n.º 3
0
 void IActivityViewContainer.Add(ActivityView view, string scope)
 {
     if (scope == "Trigger")
     {
         this.Trigger = view;
     }
     else if (scope == "Action")
     {
         this.Action = view;
     }
     else
     {
         throw new InvalidOperationException();
     }
 }
Exemplo n.º 4
0
 void IActivityViewContainer.Add(ActivityView view, string scope)
 {
     if (scope == "Then")
     {
         this.Then = view;
     }
     else if (scope == "Else")
     {
         this.Else = view;
     }
     else
     {
         throw new InvalidOperationException();
     }
 }
Exemplo n.º 5
0
 void IActivityViewContainer.Add(ActivityView view, string scope)
 {
     if (scope == "Trigger")
     {
         this.Trigger = view;
     }
     else if (scope == "Action")
     {
         this.Action = view;
     }
     else
     {
         throw new InvalidOperationException();
     }
 }
Exemplo n.º 6
0
 void IActivityViewContainer.Add(ActivityView view, string scope)
 {
     if (scope == "Then")
     {
         this.Then = view;
     }
     else if (scope == "Else")
     {
         this.Else = view;
     }
     else
     {
         throw new InvalidOperationException();
     }
 }
        private void AddActivityViewToTree(ActivityView view)
        {
            if (this.ViewTree.Root == null)
            {
                this.ViewTree.Root = view;
            }
            else
            {
                string parentId = ObjectIdManager.GetId(this.CurrentParent);

                var parentView = this.ViewTree.FindActivityView(parentId) as IActivityViewContainer;

                if (parentView != null)
                {
                    parentView.Add(view, this.CurrentParentPropertyName);
                }
            }
        }
Exemplo n.º 8
0
        private ActivityView FindActivityView(ActivityView activityView, string activityId)
        {
            if (activityView.ActivityId == activityId)
            {
                return activityView;
            }

            var container = activityView as IActivityViewContainer;

            if (container != null)
            {
                foreach (var childView in container.ActivityViews)
                {
                    var targetView = this.FindActivityView(childView, activityId);

                    if (targetView != null)
                    {
                        return targetView;
                    }
                }
            }

            return null;
        }
Exemplo n.º 9
0
 void IActivityViewContainer.Add(ActivityView view, string scope)
 {
     this.Branches.Add(view);
 }
Exemplo n.º 10
0
 void IActivityViewContainer.Add(ActivityView view, string scope)
 {
     this.Branches.Add(view);
 }
Exemplo n.º 11
0
 void IActivityViewContainer.Add(ActivityView view, string scope)
 {
     this.Body = view;
 }
Exemplo n.º 12
0
 void IActivityViewContainer.Add(ActivityView view, string scope)
 {
     this.Body = view;
 }
Exemplo n.º 13
0
 void IActivityViewContainer.Add(ActivityView view, string scope)
 {
     this.Children.Add(view);
 }
Exemplo n.º 14
0
 void IActivityViewContainer.Add(ActivityView view, string scope)
 {
     this.Children.Add(view);
 }