Exemplo n.º 1
0
 internal SequentialConnectorAccessibleObject(SequentialActivityDesigner activityDesigner, int connectorIndex)
 {
     if (activityDesigner == null)
     {
         throw new ArgumentNullException("activityDesigner");
     }
     this.connectorHitInfo = new ConnectorHitTestInfo(activityDesigner, HitTestLocations.Designer, connectorIndex);
 }
 internal SequentialConnectorAccessibleObject(SequentialActivityDesigner activityDesigner, int connectorIndex)
 {
     if (activityDesigner == null)
     {
         throw new ArgumentNullException("activityDesigner");
     }
     this.connectorHitInfo = new ConnectorHitTestInfo(activityDesigner, HitTestLocations.Designer, connectorIndex);
 }
Exemplo n.º 3
0
        public override int GetChildCount()
        {
            SequentialActivityDesigner activityDesigner = base.ActivityDesigner as SequentialActivityDesigner;

            if (activityDesigner.ActiveDesigner != activityDesigner)
            {
                return(base.GetChildCount());
            }
            if (activityDesigner != null)
            {
                return((activityDesigner.ContainedDesigners.Count + activityDesigner.ContainedDesigners.Count) + 1);
            }
            return(-1);
        }
Exemplo n.º 4
0
        public override AccessibleObject GetChild(int index)
        {
            SequentialActivityDesigner activityDesigner = base.ActivityDesigner as SequentialActivityDesigner;

            if (activityDesigner.ActiveDesigner != activityDesigner)
            {
                return(base.GetChild(index));
            }
            if (((index >= 0) && (index < this.GetChildCount())) && ((index % 2) == 0))
            {
                return(new SequentialConnectorAccessibleObject(base.ActivityDesigner as SequentialActivityDesigner, index / 2));
            }
            return(base.GetChild(index / 2));
        }
Exemplo n.º 5
0
        public override AccessibleObject GetChild(int index)
        {
            SequentialActivityDesigner sequentialActivityDesigner = base.ActivityDesigner as SequentialActivityDesigner;

            if (sequentialActivityDesigner.ActiveDesigner != sequentialActivityDesigner)
            {
                return(base.GetChild(index));
            }

            if (index >= 0 && index < GetChildCount() && ((index % 2) == 0))
            {
                return(new SequentialConnectorAccessibleObject(base.ActivityDesigner as SequentialActivityDesigner, index / 2));
            }
            else
            {
                return(base.GetChild(index / 2));
            }
        }
Exemplo n.º 6
0
        public override int GetChildCount()
        {
            SequentialActivityDesigner sequentialActivityDesigner = base.ActivityDesigner as SequentialActivityDesigner;

            if (sequentialActivityDesigner.ActiveDesigner != sequentialActivityDesigner)
            {
                return(base.GetChildCount());
            }

            //We also create create a accessible object for each connector
            if (sequentialActivityDesigner != null)
            {
                return(sequentialActivityDesigner.ContainedDesigners.Count + sequentialActivityDesigner.ContainedDesigners.Count + 1);
            }
            else
            {
                return(-1);
            }
        }
Exemplo n.º 7
0
 public SequenceDesignerAccessibleObject(SequentialActivityDesigner activityDesigner)
     : base(activityDesigner)
 {
 }
 public SequenceDesignerAccessibleObject(SequentialActivityDesigner activityDesigner)
     : base(activityDesigner)
 {
 }