Пример #1
0
        public void AddAnnObject(AnnObjectType annObjectType, int frameIndex, Point p1, Point p2)
        {
            var annObject = AnnObjectContainer.CreateAnnObject(annObjectType, p1, p2);

            annObject.FrameIndex = frameIndex;
            annObject.PenWidth   = 2;
            annObject.Scale      = CurrentScale;
            annObject.Type       = annObjectType;
            AnnObjectContainer.Add(annObject);
            Invalidate();
        }
Пример #2
0
        public void AddAnnObject(AnnObjectType annObjectType, int frameIndex, Point p1, Point p2)
        {
            var annObject = AnnObjectContainer.CreateAnnObject(annObjectType, p1, p2);

            annObject.FrameIndex = frameIndex;
            annObject.PenWidth   = 2;
            annObject.IsSelected = true;
            annObject.Type       = AnnObjectType.Ruler;

            AnnObjectContainer.Add(annObject);
            Invalidate();
        }