예제 #1
0
        public void Execute(VMS.TPS.Common.Model.API.ScriptContext context) // Eclipse expects context here System.Windows.Window window
        {
            if (context.Patient == null || context.PlanSetup == null || context.PlanSetup.Dose == null || context.StructureSet == null)
            {
                throw new ApplicationException("Please load a patient, structure set, and a plan that has dose calculated!");
            }

            var plan = context.PlanSetup;

            Window deliverywpf = new BeamDeliveryTime.MainWindow(plan);

            deliverywpf.Show();
            deliverywpf.Activate();
            deliverywpf.Topmost = true;
        }
예제 #2
0
 private void FillScript(V.ScriptContext context, V.Application app)
 {
     typeof(V.ScriptContext)
     .GetField("m_patient", BindingFlags.Instance | BindingFlags.NonPublic)
     .SetValue(ESAPIApplication.Instance.ScriptContext, null);
 }
예제 #3
0
 public void Execute(VMS.TPS.Common.Model.API.ScriptContext context)
 {
     QAScript.App.App_OnScriptStartup(context);
 }