public PictureView() { InitializeComponent(); this.zoomFactor = 1; this.mainForm = mainForm as MainForm; this.currentFrame = 0; this.annotationManager = new AnnotationManager(); this.BorderStyle = BorderStyle.Fixed3D; this.imageSettings = new ImageSettings(); this.columnHeader1.Width = -2; this.annotationManager.AnnotationAdded += new AnnotationManager.CollectionChanged(annotationManager_AnnotationAdded); this.annotationManager.AnnotationDeleted += new AnnotationManager.CollectionChanged(annotationManager_AnnotationDeleted); this.annotationManager.AnnotationCleared += new AnnotationManager.CollectionCleared(annotationManager_AnnotationCleared); }
public DeleteAnnotationCommand(AnnotationManager annotationManager) { this.annotationManager = annotationManager; this.annotation = annotationManager.GetLastAnnotation(); }
public AddAnnotationCommand(AnnotationManager annotationManager, Annotation annotation) { this.annotationManager = annotationManager; this.annotation = annotation; }