private void renderObjectAnnotation(ObjectAnnotation objectAnnotation) { renderObjectAnnotationWithoutInvalidate(objectAnnotation); middleCenterPanel.Invalidate(); }
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; }
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); }