Esempio n. 1
0
 void IActivityViewContainer.Add(ActivityView view, string scope)
 {
     if (scope == "Body")
     {
         this.Body = view;
     } else if (scope == "CancellationHandler")
     {
         this.CancellationHandler = view;
     }
 }
Esempio n. 2
0
 void IActivityViewContainer.Add(ActivityView view, string scope)
 {
     if (scope == "Body")
     {
         this.Body = view;
     }
     else if (scope == "CancellationHandler")
     {
         this.CancellationHandler = view;
     }
 }
Esempio 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();
     }
 }
Esempio 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();
     }
 }
Esempio 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();
     }
 }
Esempio 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);
                }
            }
        }
Esempio 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;
        }
Esempio n. 9
0
 void IActivityViewContainer.Add(ActivityView view, string scope)
 {
     this.Branches.Add(view);
 }
Esempio n. 10
0
 void IActivityViewContainer.Add(ActivityView view, string scope)
 {
     this.Branches.Add(view);
 }
Esempio n. 11
0
 void IActivityViewContainer.Add(ActivityView view, string scope)
 {
     this.Body = view;
 }
Esempio n. 12
0
 void IActivityViewContainer.Add(ActivityView view, string scope)
 {
     this.Body = view;
 }
Esempio n. 13
0
 void IActivityViewContainer.Add(ActivityView view, string scope)
 {
     this.Children.Add(view);
 }
Esempio n. 14
0
 void IActivityViewContainer.Add(ActivityView view, string scope)
 {
     this.Children.Add(view);
 }