예제 #1
0
파일: Main.cs 프로젝트: tuandnvn/ecat
        private void renderObjectAnnotation(ObjectAnnotation objectAnnotation)
        {
            renderObjectAnnotationWithoutInvalidate(objectAnnotation);

            middleCenterPanel.Invalidate();
        }
예제 #2
0
파일: Main.cs 프로젝트: tuandnvn/ecat
        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;
        }
예제 #3
0
파일: Main.cs 프로젝트: tuandnvn/ecat
        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);
        }