-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIonChamberDose.cs
43 lines (38 loc) · 1.16 KB
/
IonChamberDose.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
using System;
using System.Linq;
using System.Text;
using System.Windows;
using System.Collections.Generic;
using VMS.TPS.Common.Model.API;
using VMS.TPS.Common.Model.Types;
namespace VMS.TPS
{
public class Script
{
public Script()
{
}
public void Execute(ScriptContext context, System.Windows.Window window)
{
// Create script window.
var mainControl = new IonChamberDose.UserControl1();
window.Content = mainControl;
window.Width = 450;
window.Height = 600;
// Struktursettet skal bruges af knappen der kan trykkes på.
mainControl.struSet = context.StructureSet;
mainControl.plansetup = context.IonPlanSetup;
foreach (var beam in context.IonPlanSetup.IonBeams)
{
mainControl.Fieldname.Items.Add(beam.Id);
}
foreach (var stru in context.StructureSet.Structures)
{
if (stru.DicomType == "MARKER")
{
mainControl.markers.Items.Add(stru.Id);
}
}
}
}
}