Esempio n. 1
0
 private void resetOffset()
 {
     using (MedicalViewerOffset offset = (MedicalViewerOffset)_cell.GetActionProperties(MedicalViewerActionType.Offset))
     {
         offset.X = 0;
         offset.Y = 0;
         _cell.SetActionProperties(MedicalViewerActionType.Offset, offset);
     }
 }
Esempio n. 2
0
        public AngleAnnotationDialog(MainForm owner)
        {
            InitializeComponent();

            cell   = MainForm.DefaultCell;
            viewer = owner.Viewer;

            _angleAnnotation          = (MedicalViewerAnnotationAngle)(cell.GetActionProperties(MedicalViewerActionType.AnnotationAngle));
            _lblColor.BackColor       = Color.FromArgb(0xff, _angleAnnotation.AnnotationColor);
            _cmbApplyTo.SelectedIndex = (int)_angleAnnotation.Flags;
        }
Esempio n. 3
0
        public RulerAnnotationDialog(MainForm owner)
        {
            InitializeComponent();

            cell   = MainForm.DefaultCell;
            viewer = owner.Viewer;

            _rulerAnnotation          = (MedicalViewerAnnotationRuler)(cell.GetActionProperties(MedicalViewerActionType.AnnotationRuler));
            _lblColor.BackColor       = Color.FromArgb(0xff, _rulerAnnotation.AnnotationColor);
            _cmbApplyTo.SelectedIndex = (int)_rulerAnnotation.Flags;
            _chkSimpleRuler.Checked   = _rulerAnnotation.SimpleRuler;
        }
Esempio n. 4
0
        public EllipseAnnotationDialog(MainForm owner)
        {
            InitializeComponent();
            int cellIndex = owner.SearchForFirstSelected();

            cell   = MainForm.DefaultCell; //(MedicalViewerMultiCell)owner.Viewer.Cells[cellIndex];
            viewer = owner.Viewer;

            _cmbApplyTo.SelectedIndex = 0;
            _ellipseAnnotation        = (MedicalViewerAnnotationEllipse)(cell.GetActionProperties(MedicalViewerActionType.AnnotationEllipse));
            _lblColor.BackColor       = Color.FromArgb(0xff, _ellipseAnnotation.AnnotationColor);
            _radCenter.Checked        = _ellipseAnnotation.CreateFromCenter;
        }