2 using System.Collections.Generic;
5 using System.Threading.Tasks;
6 using SiliconStudio.Paradox.Framework.MicroThreading;
7 using SiliconStudio.Paradox.Extensions;
8 using System.Windows.Input;
9 using SiliconStudio.Presentation;
12 namespace SiliconStudio.
Paradox.DebugTools.ViewModels
19 public ICommand RunScriptCommand {
get;
private set; }
20 public ICommand CloseMicroThreadView {
get;
private set; }
22 private ScriptEntry2 scriptEntry;
27 throw new ArgumentNullException(
"parent");
30 AssemblyParent = TypeParent.Parent;
32 this.scriptEntry = scriptEntry;
42 return scriptEntry.MethodName;
46 public bool IsAssemblyStartup
50 return scriptEntry.Flags == ScriptFlags.AssemblyStartup;
54 public bool HasNoFlags
58 return scriptEntry.Flags == ScriptFlags.None;
70 private void OnRunScriptCommand()
72 MicroThread mt = AssemblyParent.Parent.EngineContext.ScriptManager.RunScript(scriptEntry, null);
76 private MicroThreadViewModel microThread;
77 public MicroThreadViewModel MicroThread
85 if (microThread != value)
88 OnPropertyChanged(
"MicroThread");
An implementation of CommandBase that route Execute calls to a given anonymous method.
Flags
Enumeration of the new Assimp's flags.