public ReplViewModel()
 {
     readOnly = false;
     engine = new JavaScriptEngine();
     prompt = "$ ";
     items = new ObservableCollection<String>();
     ClearCommand = new RelayCommand(() => Clear());
     ExecuteCommand = new RelayCommand(cmd => Run(cmd.ToString()));
 }
 /// <summary>
 /// Creates a new scripting service.
 /// </summary>
 public ScriptingService()
 {
     _engine = new JavaScriptEngine();
 }
Exemple #3
0
 /// <summary>
 /// Creates a new scripting service.
 /// </summary>
 public ScriptingService()
 {
     _engine = new JavaScriptEngine();
 }