Exemplo n.º 1
0
        private void renderObjectAnnotation(ObjectAnnotation objectAnnotation)
        {
            renderObjectAnnotationWithoutInvalidate(objectAnnotation);

            middleCenterPanel.Invalidate();
        }
Exemplo n.º 2
0
        private void renderObjectAnnotationWithoutInvalidate(ObjectAnnotation objectAnnotation)
        {
            middleCenterTableLayoutPanel.RowCount = lastObjectCell.Y + 1;
            middleCenterTableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Absolute, 60F));
            middleCenterTableLayoutPanel.Size = new System.Drawing.Size(970, 60 * middleCenterTableLayoutPanel.RowCount + 4);
            middleCenterTableLayoutPanel.Controls.Add(objectAnnotation, lastObjectCell.X, lastObjectCell.Y);
            objectAnnotation.Dock = DockStyle.Fill;

            lastObjectCell.Y = lastObjectCell.Y + 1;
        }
Exemplo n.º 3
0
        internal void addObjectAnnotation(Object o)
        {
            var objectAnnotation = new ObjectAnnotation(o, this, this.frameTrackBar.Minimum, this.frameTrackBar.Maximum);
            //objectAnnotations.Add(objectAnnotation);
            objectToObjectTracks[o] = objectAnnotation;

            //objectAnnotation.Location = lastObjectCell;
            //if (lastObjectCell.Y >= 0) return;

            renderObjectAnnotation(objectAnnotation);
        }