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(); }
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(); }