Пример #1
0
        /// <summary>
        /// Creates a new instance of the EdgeLine class using
        /// the provided edge type and visibility setting
        /// </summary>
        public EdgeLine(Model.EdgeType _edgeType, bool _isVisible)
        {
            edgeType  = _edgeType;
            IsVisible = _isVisible;

            // Draw the edge line
            Draw();

            this.line.MouseEnter += new MouseEventHandler(line_MouseEnter);
            this.line.MouseLeave += new MouseEventHandler(line_MouseLeave);
        }
Пример #2
0
        /// <summary>
        /// Creates a new instance of the EdgeLine class using
        /// the provided edge type and visibility setting
        /// </summary>
        public EdgeLine(Model.EdgeType _edgeType, bool _isVisible)
        {
            edgeType = _edgeType;
            IsVisible = _isVisible;

            // Draw the edge line
            Draw();

            this.line.MouseEnter += new MouseEventHandler(line_MouseEnter);
            this.line.MouseLeave += new MouseEventHandler(line_MouseLeave);
        }
Пример #3
0
 /// <summary>
 /// Creates a new instance of the EdgeLine class using
 /// the provided edge type
 /// </summary>
 /// <param name="_edgeType"></param>
 public EdgeLine(Model.EdgeType _edgeType) : this(_edgeType, true)
 {
 }