예제 #1
0
파일: ArrowGraphic.cs 프로젝트: nhannd/Xian
		private void OnCloneComplete()
		{
			_shaft = CollectionUtils.SelectFirst(base.Graphics, delegate(IGraphic graphic) { return graphic is LinePrimitive; }) as LinePrimitive;
			_arrowhead = CollectionUtils.SelectFirst(base.Graphics, delegate(IGraphic graphic) { return graphic is InvariantArrowheadGraphic; }) as InvariantArrowheadGraphic;

			Initialize();
		}
예제 #2
0
        private void OnCloneComplete()
        {
            _shaft     = CollectionUtils.SelectFirst(base.Graphics, delegate(IGraphic graphic) { return(graphic is LinePrimitive); }) as LinePrimitive;
            _arrowhead = CollectionUtils.SelectFirst(base.Graphics, delegate(IGraphic graphic) { return(graphic is InvariantArrowheadGraphic); }) as InvariantArrowheadGraphic;

            Initialize();
        }
예제 #3
0
파일: ArrowGraphic.cs 프로젝트: nhannd/Xian
		private void Initialize()
		{
			if (_shaft == null)
			{
				base.Graphics.Add(_shaft = new LinePrimitive());
			}

			if (_arrowhead == null)
			{
				base.Graphics.Add(_arrowhead = new InvariantArrowheadGraphic());
				_arrowhead.Visible = _showArrowhead;
			}

			_shaft.Point1Changed += OnShaftPoint1Changed;
			_shaft.Point2Changed += OnShaftPoint2Changed;
		}
예제 #4
0
        private void Initialize()
        {
            if (_shaft == null)
            {
                base.Graphics.Add(_shaft = new LinePrimitive());
            }

            if (_arrowhead == null)
            {
                base.Graphics.Add(_arrowhead = new InvariantArrowheadGraphic());
                _arrowhead.Visible           = _showArrowhead;
            }

            _shaft.Point1Changed += OnShaftPoint1Changed;
            _shaft.Point2Changed += OnShaftPoint2Changed;
        }
예제 #5
0
 /// <summary>
 /// Cloning constructor.
 /// </summary>
 protected InvariantArrowheadGraphic(InvariantArrowheadGraphic source, ICloningContext context)
 {
     context.CloneFields(source, this);
 }
예제 #6
0
		/// <summary>
		/// Cloning constructor.
		/// </summary>
		protected InvariantArrowheadGraphic(InvariantArrowheadGraphic source, ICloningContext context)
		{
			context.CloneFields(source, this);
		}