private void resetOffset() { using (MedicalViewerOffset offset = (MedicalViewerOffset)_cell.GetActionProperties(MedicalViewerActionType.Offset)) { offset.X = 0; offset.Y = 0; _cell.SetActionProperties(MedicalViewerActionType.Offset, offset); } }
private void _btnApply_Click(object sender, EventArgs e) { _angleAnnotation.Flags = ((MedicalViewerAnnotationFlags)_cmbApplyTo.SelectedIndex); _angleAnnotation.AnnotationColor = _lblColor.BackColor; cell.SetActionProperties(MedicalViewerActionType.AnnotationAngle, _angleAnnotation); foreach (MedicalViewerMultiCell viewerCell in viewer.Cells) { viewerCell.SetActionProperties(MedicalViewerActionType.AnnotationAngle, _angleAnnotation); } }
private void _btnApply_Click(object sender, EventArgs e) { _ellipseAnnotation.Flags = ((MedicalViewerAnnotationFlags)_cmbApplyTo.SelectedIndex); _ellipseAnnotation.CreateFromCenter = _radCenter.Checked; _ellipseAnnotation.AnnotationColor = _lblColor.BackColor; cell.SetActionProperties(MedicalViewerActionType.AnnotationEllipse, _ellipseAnnotation); foreach (MedicalViewerMultiCell viewerCell in viewer.Cells) { viewerCell.SetActionProperties(MedicalViewerActionType.AnnotationEllipse, _ellipseAnnotation); } }