예제 #1
0
        public ScriptViewModel(Script script = null)
        {
            ScriptRegistryProvider scriptRegistryProvider = new ScriptRegistryProvider();

            _scriptRegistry = scriptRegistryProvider.GetInstance();

            this.Script = script ?? new Script();
            IsNew       = script == null;
        }
예제 #2
0
        public ScriptListViewModel()
        {
            ScriptRegistryProvider scriptRegistryProvider = new ScriptRegistryProvider();

            _scriptRegistry = scriptRegistryProvider.GetInstance();

            UpdateScriptList();
            _scriptRegistry.ScriptsListChanged += OnScriptsCollectionChanged;
        }
예제 #3
0
        public ScriptHandler()
        {
            ScriptEnginePoolProvider scriptEnginePoolProvider = new ScriptEnginePoolProvider();

            _scriptEnginePool = scriptEnginePoolProvider.GetInstance();

            ScriptRegistryProvider scriptRegistryProvider = new ScriptRegistryProvider();

            _scriptRegistry = scriptRegistryProvider.GetInstance();
        }
예제 #4
0
 public ScriptsLifetimeManager()
 {
     _scriptRegistryProvider = new ScriptRegistryProvider();
 }