Ejemplo n.º 1
0
        public void Execute(ScriptContext context, System.Windows.Window window, ScriptEnvironment environment)
        {
            // TODO : Add here the code that is called when the script is launched from Eclipse.
            var doseMetricView = new DoseMetricView(context.PlanSetup);

            window.Content = doseMetricView;
            window.Width   = 610;
            window.Height  = 410;
            window.Title   = "Dose Metrics";
        }
Ejemplo n.º 2
0
        public void Execute(ScriptContext context, System.Windows.Window window, ScriptEnvironment environment)
        {
            // TODO : Add here the code that is called when the script is launched from Eclipse.
            PlanSetup planSetUp = context.PlanSetup;

            if (null == planSetUp)
            {
                MessageBox.Show("Please select one plan");
                return;
            }

            // ESAPI function
            ESAPI_Methods eSAPI_Methods = new ESAPI_Methods();

            DoseMetricView doseMetricView = new DoseMetricView(planSetUp, eSAPI_Methods);

            window.Content = doseMetricView;

            window.Title  = "Dose Metric";
            window.Width  = 650;
            window.Height = 650;
        }