예제 #1
0
        public NudgeToolDialog(MainForm owner, MedicalViewerActionType actionType)
        {
            InitializeComponent();
            _type = actionType;
            if (_type == MedicalViewerActionType.ShrinkTool)
            {
                Text = "Shrink Tool Dialog";
            }
            else
            {
                Text = "Nudge Tool Dialog";
            }

            MedicalViewerNudgeTool nudgeToolProperties = (MedicalViewerNudgeTool)owner.Viewer.GetActionProperties(_type);

            _txtHeight.Text = nudgeToolProperties.Height.ToString();
            _txtWidth.Text  = nudgeToolProperties.Width.ToString();
            Type            = nudgeToolProperties.Shape;
        }
예제 #2
0
        public NudgeShrinkToolDialog(MainForm owner)
        {
            InitializeComponent();

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

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

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

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

            _txtShrinkHeight.Text = nudgeToolProperties.Height.ToString();
            _txtShrinkWidth.Text  = nudgeToolProperties.Width.ToString();
            ShrinkType            = nudgeToolProperties.Shape;
        }