コード例 #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)
 {
 }