private void RemoveMicroThread(long microThreadId) { Dispatcher.BeginInvoke((Action) delegate { MicroThreadViewModel foundViewModel = microThreads.FirstOrDefault(vm => vm.Id == microThreadId); if (foundViewModel != null) { microThreads.Remove(foundViewModel); } }, null); }
private void OnRunScriptCommand() { MicroThread mt = AssemblyParent.Parent.EngineContext.ScriptManager.RunScript(scriptEntry, null); MicroThread = new MicroThreadViewModel(mt); }