Exemple #1
0
 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);
 }
Exemple #2
0
 public DeleteAnnotationCommand(AnnotationManager annotationManager)
 {
     this.annotationManager = annotationManager;
     this.annotation        = annotationManager.GetLastAnnotation();
 }
Exemple #3
0
 public AddAnnotationCommand(AnnotationManager annotationManager, Annotation annotation)
 {
     this.annotationManager = annotationManager;
     this.annotation = annotation;
 }
Exemple #4
0
 public AddAnnotationCommand(AnnotationManager annotationManager, Annotation annotation)
 {
     this.annotationManager = annotationManager;
     this.annotation        = annotation;
 }
Exemple #5
0
 public DeleteAnnotationCommand(AnnotationManager annotationManager)
 {
     this.annotationManager = annotationManager;
     this.annotation = annotationManager.GetLastAnnotation();
 }