SECI  1
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events
CommandLineWrapper.xaml.cs
Go to the documentation of this file.
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using System.Text;
5 using System.Windows;
6 using System.Windows.Controls;
7 using System.Windows.Data;
8 using System.Windows.Documents;
9 using System.Windows.Input;
10 using System.Windows.Media;
11 using System.Windows.Media.Imaging;
12 using System.Windows.Navigation;
13 using System.Windows.Shapes;
14 
15 namespace SeciControls
16 {
20  public partial class CommandLineWrapper : UserControl
21  {
22  public event EventHandler OnNewScriptingProcessStarted;
23 
25  {
26  InitializeComponent();
27  }
28 
29  public void Initialise(String filepath, String args)
30  {
31  Host1.Initialise(filepath, args);
32  Host1.OnProcessStartedViaLink += new EventHandler(Host1_OnProcessStartedViaLink);
33  }
34 
35  void Host1_OnProcessStartedViaLink(object sender, EventArgs e)
36  {
37  if (OnNewScriptingProcessStarted != null)
38  {
40  }
41  }
42 
43  public void StartProcess()
44  {
45  Host1.StartProcess();
46  }
47 
48  public void KillProcess()
49  {
50  Host1.KillProcess();
51  }
52 
53  public void SetFocus()
54  {
55  Host1.SetFocus();
56  }
57 
58  public void SetLinkMessage(string message)
59  {
60  Host1.LinkMessage = message;
61  }
62 
63  public void UsePython(bool use)
64  {
65  Host1.UsePython = use;
66  }
67 
68  public int GetPID()
69  {
70  return Host1.ProcID;
71  }
72  }
73 }
Interaction logic for CommandLineWrapper.xaml
void Host1_OnProcessStartedViaLink(object sender, EventArgs e)
void Initialise(String filepath, String args)