private List<IScript> GetScriptsForFindReplace(LookInDocumentType lookIn, bool findAll, out bool jumpToStart) { switch (lookIn) { case LookInDocumentType.CurrentDocument: jumpToStart = !findAll; return new List<IScript> { _script }; case LookInDocumentType.CurrentProject: jumpToStart = false; List<IScript> scripts = _agsEditor.GetAllScripts(); if (!findAll) { OrderScriptsBySelectedScript(scripts); } return scripts; default: throw new NotSupportedException(string.Format("{0} is not supported yet", lookIn)); } }