public TeethAdaptationGUI(TeethAdaptationView wizardView, AnomalousMvcContext context, MyGUIViewHost viewHost) : base("Medical.GUI.DistortionWizard.Teeth.TeethAdaptationGUI.layout", wizardView, context, viewHost) { gridPropertiesControl = new GridPropertiesControl(context.MeasurementGrid, widget); gridPropertiesControl.GridSpacing = 2; startingPickingMode = context.AnatomyController.PickingMode; context.AnatomyController.PickingMode = AnatomyPickingMode.None; teethMovementPanel = new TeethMovementGUI(widget, wizardView, context); undoButton = widget.findWidget("TeethAdaptationPanel/UndoButton") as Button; resetButton = widget.findWidget("TeethAdaptationPanel/ResetButton") as Button; undoButton.MouseButtonClick += new MyGUIEvent(undoButton_MouseButtonClick); resetButton.MouseButtonClick += new MyGUIEvent(resetButton_MouseButtonClick); }
public TeethHeightAdaptationGUI(TeethHeightAdaptationView wizardView, AnomalousMvcContext context, MyGUIViewHost viewHost) : base("Medical.GUI.DistortionWizard.Teeth.TeethHeightAdaptationGUI.layout", wizardView, context, viewHost) { gridPropertiesControl = new GridPropertiesControl(context.MeasurementGrid, widget); gridPropertiesControl.GridSpacing = 2; startingPickingMode = context.AnatomyController.PickingMode; context.AnatomyController.PickingMode = AnatomyPickingMode.None; heightControl = new HeightControl(widget.findWidget("TeethAdaptPanel/LeftSideSlider") as ScrollBar, widget.findWidget("TeethAdaptPanel/RightSideSlider") as ScrollBar, widget.findWidget("TeethAdaptPanel/BothSidesSlider") as ScrollBar); teethMovementPanel = new TeethMovementGUI(widget, wizardView, context); undoButton = widget.findWidget("TeethAdaptPanel/UndoButton") as Button; makeNormalButton = widget.findWidget("TeethAdaptPanel/MakeNormalButton") as Button; undoButton.MouseButtonClick += new MyGUIEvent(undoButton_MouseButtonClick); makeNormalButton.MouseButtonClick += new MyGUIEvent(makeNormalButton_MouseButtonClick); }