public RightCondylarDegenerationGUI(RightCondylarDegenerationView wizardView, AnomalousMvcContext context, MyGUIViewHost viewHost)
            : base("Medical.GUI.DistortionWizard.Mandible.RightCondylarDegenerationGUI.layout", wizardView, context, viewHost)
        {
            rightCondyleDegenerationSlider = new BoneManipulatorSlider(widget.findWidget("RightCondyleDegen/CondyleSlider") as ScrollBar);
            rightLateralPoleSlider         = new BoneManipulatorSlider(widget.findWidget("RightCondyleDegen/LateralPoleSlider") as ScrollBar);
            rightMedialPoleScaleSlider     = new BoneManipulatorSlider(widget.findWidget("RightCondyleDegen/MedialPoleSlider") as ScrollBar);
            wearSlider = new BoneManipulatorSlider(widget.findWidget("RightCondyleDegen/WearSlider") as ScrollBar);

            addBoneManipulator(rightCondyleDegenerationSlider);
            addBoneManipulator(rightLateralPoleSlider);
            addBoneManipulator(rightMedialPoleScaleSlider);
            addBoneManipulator(wearSlider);

            wearSlider.ValueChanged += new EventHandler(wearSlider_ValueChanged);
            rightCondyleDegenerationSlider.ValueChanged += new EventHandler(otherSliders_ValueChanged);
            rightLateralPoleSlider.ValueChanged         += new EventHandler(otherSliders_ValueChanged);
            rightMedialPoleScaleSlider.ValueChanged     += new EventHandler(otherSliders_ValueChanged);

            undoButton       = widget.findWidget("RightCondyleDegen/UndoButton") as Button;
            makeNormalButton = widget.findWidget("RightCondyleDegen/MakeNormalButton") as Button;

            undoButton.MouseButtonClick       += new MyGUIEvent(undoButton_MouseButtonClick);
            makeNormalButton.MouseButtonClick += new MyGUIEvent(makeNormalButton_MouseButtonClick);

            gridPropertiesControl             = new GridPropertiesControl(context.MeasurementGrid, widget);
            gridPropertiesControl.GridSpacing = 5;
        }
        public LeftCondylarGrowthGUI(LeftCondylarGrowthView view, AnomalousMvcContext context, MyGUIViewHost viewHost)
            : base("Medical.GUI.DistortionWizard.Mandible.LeftCondylarGrowthGUI.layout", view, context, viewHost)
        {
            leftRamusHeightSlider     = new BoneManipulatorSlider(widget.findWidget("LeftCondyleGrowth/RamusHeightSlider") as ScrollBar);
            leftCondyleHeightSlider   = new BoneManipulatorSlider(widget.findWidget("LeftCondyleGrowth/CondyleHeightSlider") as ScrollBar);
            leftCondyleRotationSlider = new BoneManipulatorSlider(widget.findWidget("LeftCondyleGrowth/CondyleRotationSlider") as ScrollBar);
            leftMandibularNotchSlider = new BoneManipulatorSlider(widget.findWidget("LeftCondyleGrowth/MandibularNotchSlider") as ScrollBar);
            leftAntegonialNotchSlider = new BoneManipulatorSlider(widget.findWidget("LeftCondyleGrowth/AntegonialNotchSlider") as ScrollBar);

            addBoneManipulator(leftRamusHeightSlider);
            addBoneManipulator(leftCondyleHeightSlider);
            addBoneManipulator(leftCondyleRotationSlider);
            addBoneManipulator(leftMandibularNotchSlider);
            addBoneManipulator(leftAntegonialNotchSlider);

            undoButton       = widget.findWidget("LeftCondyleGrowth/UndoButton") as Button;
            makeNormalButton = widget.findWidget("LeftCondyleGrowth/MakeNormalButton") as Button;

            undoButton.MouseButtonClick       += new MyGUIEvent(undoButton_MouseButtonClick);
            makeNormalButton.MouseButtonClick += new MyGUIEvent(makeNormalButton_MouseButtonClick);

            gridPropertiesControl             = new GridPropertiesControl(context.MeasurementGrid, widget);
            gridPropertiesControl.GridSpacing = 5;
        }
 protected void addBoneManipulator(BoneManipulatorSlider slider)
 {
     slider.OpeningValue = 0.0f;
     openingValues.Add(slider);
 }