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. var bs = new Bootstrapper(); var container = bs.Bootstrap(context.PlanSetup, context.CurrentUser, context.PlansInScope); var mainView = container.Resolve <MainView>(); window.Content = mainView; window.Height = 1050; window.Width = 810; OxyPlot.Wpf.BarSeries fake_class = 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(); }