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