Exemplo n.º 1
0
        /// <summary>
        /// Returns the connector that is farthest to the left
        /// </summary>
        /// <param name="rc1">One row connector</param>
        /// <param name="rc2">Another row connector</param>
        /// <returns>The leftmost row connector</returns>
        public static RowConnector GetLeftMost(RowConnector rc1, RowConnector rc2)
        {
            if (rc1 != null && rc2 == null)
            {
                return rc1;
            }

            if (rc1 == null && rc2 != null)
            {
                return rc2;
            }

            if (rc1 == null && rc2 == null)
            {
                return null;
            }

            // Both are set... Which one is farthest to the left?
            if (rc1._topPoint.X < rc2._topPoint.X)
            {
                return rc1;
            }
            else
            {
                return rc2;
            }
        }
Exemplo n.º 2
0
 /// <summary>
 /// Set the connector at top.
 /// </summary>
 /// <param name="rowConnector"></param>
 /// <param name="pointTop"></param>
 /// <param name="pointBottom"></param>
 public void SetConnectorUp(RowConnector rowConnector, PointF pointTop, PointF pointBottom)
 {
     _connectorUp = rowConnector;
     _connectorUp.SetTopPoint(pointTop);
     _connectorUp.SetBottomPoint(pointBottom);
 }
Exemplo n.º 3
0
 /// <summary>
 /// Sets the connector at the top
 /// </summary>
 /// <returns></returns>
 public void SetConnectorUp(RowConnector conn)
 {
     _connectorUp = conn;
 }
Exemplo n.º 4
0
 /// <summary>
 /// Sets the connector at the bottom
 /// </summary>
 /// <returns></returns>
 public void SetConnectorDown(RowConnector conn)
 {
     _connectorDown = conn;
 }