Ejemplo n.º 1
0
        private void _btnOK_Click(object sender, EventArgs e)
        {
            MedicalViewerNudgeTool nudgeToolProperties = (MedicalViewerNudgeTool)(cell.GetActionProperties(MedicalViewerActionType.NudgeTool));

            nudgeToolProperties.Width  = Convert.ToInt32(_txtNudgeWidth.Text);
            nudgeToolProperties.Height = Convert.ToInt32(_txtNudgeHeight.Text);
            nudgeToolProperties.Shape  = NudgeType;

            cell.SetActionProperties(MedicalViewerActionType.NudgeTool, nudgeToolProperties);

            foreach (MedicalViewerMultiCell viewerCell in viewer.Cells)
            {
                viewerCell.SetActionProperties(MedicalViewerActionType.NudgeTool, nudgeToolProperties);
            }



            nudgeToolProperties = (MedicalViewerNudgeTool)(cell.GetActionProperties(MedicalViewerActionType.ShrinkTool));

            nudgeToolProperties.Width  = Convert.ToInt32(_txtShrinkWidth.Text);
            nudgeToolProperties.Height = Convert.ToInt32(_txtShrinkHeight.Text);
            nudgeToolProperties.Shape  = ShrinkType;

            cell.SetActionProperties(MedicalViewerActionType.ShrinkTool, nudgeToolProperties);

            foreach (MedicalViewerMultiCell viewerCell in viewer.Cells)
            {
                viewerCell.SetActionProperties(MedicalViewerActionType.ShrinkTool, nudgeToolProperties);
            }

            this.Close();
        }
Ejemplo n.º 2
0
        private void _btnApply_Click(object sender, EventArgs e)
        {
            _textAnnotation.Flags           = ((MedicalViewerAnnotationFlags)_cmbApplyTo.SelectedIndex);
            _textAnnotation.AnnotationColor = _lblColor.BackColor;
            _textAnnotation.TextColor       = _lblColor.BackColor;

            _cell.SetActionProperties(MedicalViewerActionType.AnnotationText, _textAnnotation);

            foreach (MedicalViewerMultiCell viewerCell in _viewer.Cells)
            {
                viewerCell.SetActionProperties(MedicalViewerActionType.AnnotationText, _textAnnotation);
            }
        }
Ejemplo n.º 3
0
        private void _btnApply_Click(object sender, EventArgs e)
        {
            _rectangleAnnotation.Flags            = ((MedicalViewerAnnotationFlags)_cmbApplyTo.SelectedIndex);
            _rectangleAnnotation.CreateFromCenter = _radCenter.Checked;
            _rectangleAnnotation.AnnotationColor  = _lblColor.BackColor;

            cell.SetActionProperties(MedicalViewerActionType.AnnotationRectangle, _rectangleAnnotation);

            foreach (MedicalViewerMultiCell viewerCell in viewer.Cells)
            {
                viewerCell.SetActionProperties(MedicalViewerActionType.AnnotationRectangle, _rectangleAnnotation);
            }
        }
Ejemplo n.º 4
0
        private void _btnApply_Click(object sender, EventArgs e)
        {
            _arrowAnnotation.Flags           = ((MedicalViewerAnnotationFlags)_cmbApplyTo.SelectedIndex);
            _arrowAnnotation.AnnotationColor = _lblColor.BackColor;

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

            cell.SetActionProperties(MedicalViewerActionType.AnnotationArrow, _arrowAnnotation);

            foreach (MedicalViewerMultiCell viewerCell in viewer.Cells)
            {
                viewerCell.SetActionProperties(MedicalViewerActionType.AnnotationArrow, _arrowAnnotation);
            }
        }