public void GoNext() { AutoSaveXslt(); var xslt = xsltEditor.Text; var prog = new ImportProgress(); prog.MethodInvoke = i => { i.ProcessImport(this.Extractor, xslt, (int)nudBatchSize.Value); }; _wizard.GoToStep(prog); }