-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathLauncherExample.txt
More file actions
46 lines (41 loc) · 1.12 KB
/
LauncherExample.txt
File metadata and controls
46 lines (41 loc) · 1.12 KB
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
44
45
46
using System.Linq;
using System.Text;
using System.Windows;
using System.Collections.Generic;
using System.Reflection;
using System.Runtime.CompilerServices;
using VMS.TPS.Common.Model.API;
using VMS.TPS.Common.Model.Types;
using System.Diagnostics;
using System.IO;
using System;
//[assembly: AssemblyVersion("1.0.0.1")]
namespace VMS.TPS
{
public class Script
{
public Script()
{
}
[MethodImpl(MethodImplOptions.NoInlining)]
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.
try
{
if (context.Patient != null)
{
Process.Start(AppExePath(), context.Patient.Id);
}
}
catch (Exception)
{
MessageBox.Show("Failed to start application.");
}
}
private string AppExePath()
{
return @"put exe path here";
}
}
}