public ScriptViewModel(Script script = null) { ScriptRegistryProvider scriptRegistryProvider = new ScriptRegistryProvider(); _scriptRegistry = scriptRegistryProvider.GetInstance(); this.Script = script ?? new Script(); IsNew = script == null; }
public ScriptListViewModel() { ScriptRegistryProvider scriptRegistryProvider = new ScriptRegistryProvider(); _scriptRegistry = scriptRegistryProvider.GetInstance(); UpdateScriptList(); _scriptRegistry.ScriptsListChanged += OnScriptsCollectionChanged; }
public ScriptHandler() { ScriptEnginePoolProvider scriptEnginePoolProvider = new ScriptEnginePoolProvider(); _scriptEnginePool = scriptEnginePoolProvider.GetInstance(); ScriptRegistryProvider scriptRegistryProvider = new ScriptRegistryProvider(); _scriptRegistry = scriptRegistryProvider.GetInstance(); }
public ScriptsLifetimeManager() { _scriptRegistryProvider = new ScriptRegistryProvider(); }