// ----- Public Methods ----- public Boolean Start(SearcherParams pars, int _offset, int _cnt_thread) { bool success = false; // Perform a reset of all variables, // to ensure that the state of the searcher is the same on every new start: ResetVariables(); // Remember the parameters: m_pars = pars; this._offset = _offset; this._cnt_thread = _cnt_thread; search_Node = new TreeNode("Search for: \"" + m_pars.ContainingText + "\""); // Start searching for FileSystemInfos that match the parameters: success = true; return(success); }
private void ResetVariables() { m_stop = false; m_pars = null; search_Node = null; }