private void resetOffset() { using (MedicalViewerOffset offset = (MedicalViewerOffset)_cell.GetActionProperties(MedicalViewerActionType.Offset)) { offset.X = 0; offset.Y = 0; _cell.SetActionProperties(MedicalViewerActionType.Offset, offset); } }
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; }
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; }
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; }