Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
ScriptManagerControl.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 using SiliconStudio.Paradox.Framework.ViewModel;
15 using System.ComponentModel;
16 using System.Collections.ObjectModel;
18 
19 namespace SiliconStudio.Paradox.DebugTools
20 {
21  /// <summary>
22  /// Interaction logic for ScriptManagerControl.xaml
23  /// </summary>
24  public partial class ScriptManagerControl : UserControl
25  {
26  public ScriptManagerControl(EngineContext engineContext, Action terminateCommand)
27  {
28  InitializeComponent();
29 
30  if (engineContext == null)
31  throw new ArgumentNullException("engineContext");
32 
33  if (terminateCommand != null)
34  TerminateCommand = new AnonymousCommand(_ => terminateCommand());
35 
36  this.Loaded += (s, e) =>
37  {
38  scriptEditor.Initialize(engineContext);
39  scriptMonitor.Initialize(engineContext);
40  };
41 
42  }
43 
44  public ICommand TerminateCommand { get; private set; }
45  }
46 }
An implementation of CommandBase that route Execute calls to a given anonymous method.
Interaction logic for ScriptManagerControl.xaml
function s(a)
ScriptManagerControl(EngineContext engineContext, Action terminateCommand)