Exemplo n.º 1
0
 private void PrepareScripter()
 {
     _scripter = new BatchScripter(_cp);
     _scripter.ScriptingInProgress += new ProgressReportEventHandler(_scripter_Progress);
     _scripter.WalkingDependencies += new ProgressReportEventHandler(_scripter_Progress);
     _scripter.TaskProgressInfo    += new TaskProgressInfoDelegate(_scripter_TaskProgressInfo);
 }
Exemplo n.º 2
0
        private void DisposeScripter()
        {
            if (_scripter == null)
            {
                return;
            }

            _scripter.WalkingDependencies -= new ProgressReportEventHandler(_scripter_Progress);
            _scripter.ScriptingInProgress -= new ProgressReportEventHandler(_scripter_Progress);
            _scripter.TaskProgressInfo    -= new TaskProgressInfoDelegate(_scripter_TaskProgressInfo);

            _scripter.Dispose();
            _scripter = null;
        }