Exemplo n.º 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;
        }
Exemplo n.º 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);
 }
Exemplo n.º 3
0
 public void Execute(VMS.TPS.Common.Model.API.ScriptContext context)
 {
     QAScript.App.App_OnScriptStartup(context);
 }