Exemplo 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.
            DVHView dvh_view = new DVHView(context.PlanSetup);

            window.Content = dvh_view;
            window.Width   = 610;
            window.Height  = 440;
            window.Title   = "DVH Report";
            //dummy class
            OxyPlot.Wpf.BarSeries bs = new OxyPlot.Wpf.BarSeries();
        }
Exemplo 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.
            if (context?.PlanSetup?.Dose == null)
            {
                MessageBox.Show("Please select one plan");
            }

            DVHView dvhView = new DVHView(context.PlanSetup);

            window.Content = dvhView;
            window.Width   = 700;
            window.Height  = 500;
            window.Title   = "DVH Plot";


            //
            OxyPlot.Wpf.BarSeries bs = new OxyPlot.Wpf.BarSeries();
        }