-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathClass1.cs
More file actions
34 lines (31 loc) · 957 Bytes
/
Class1.cs
File metadata and controls
34 lines (31 loc) · 957 Bytes
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
using ESAPIClassLibTry2;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
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, Window window)
{
//If no dose in patient show error.
if (context.PlanSetup.Dose == null)
{
MessageBox.Show("Dose is not calculated for this plan, please check the plan and try again.", "No dose found");
return;
}
//Create object of MainWindow and pass context parameter
var mainView = new MainView(context);
window.Title = "TPS QA";
window.WindowState = WindowState.Maximized;
window.Content = mainView; //contents to be displayed on window
}
}
}