예제 #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
파일: EdgeLine.cs 프로젝트: senfo/snaglV2
        /// <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)
 {
 }