private void BtnLookInClick(object sender, EventArgs e)
        {
            var form = new SledMultiFolderSelectionForm { Folders = m_lstLookInFolders };
            if (form.ShowDialog(this) == DialogResult.OK)
            {
                m_lstLookInFolders.Clear();
                m_lstLookInFolders.AddRange(form.Folders);
                
                // Update LookIn check box
                m_bStopRecursion = true;
                m_cmbLookIn.SelectedIndex = m_iCmbLookInCustomIdx;
                m_bStopRecursion = false;
                m_chkIncludeSubFolders.Enabled = true;
                m_cmbLookAtTheseFileTypes.Enabled = true;
            }

            form.Close();
        }
        private void CmbLookInSelectedIndexChanged(object sender, EventArgs e)
        {
            if (m_bStopRecursion)
                return;

            int iSelectedIndex = ((ComboBox)sender).SelectedIndex;
            m_chkIncludeSubFolders.Enabled = false;
            m_cmbLookAtTheseFileTypes.Enabled = false;

            // Update persisted settings
            SledFindAndReplaceSettings.FindInFiles.LookInIndex = iSelectedIndex;

            // If they select "Custom" we need to pop up the multi folder select form. Then,
            // if they don't select any folders we need to reset the LookIn index.
            if (iSelectedIndex == m_iCmbLookInCustomIdx)
            {
                var form = new SledMultiFolderSelectionForm { Folders = m_lstLookInFolders };
                if (form.ShowDialog(this) == DialogResult.OK)
                {
                    m_lstLookInFolders.Clear();
                    m_lstLookInFolders.AddRange(form.Folders);

                    // Don't actually persist "Custom" search
                    SledFindAndReplaceSettings.FindInFiles.LookInIndex = 0;
                    m_chkIncludeSubFolders.Enabled = true;
                    m_cmbLookAtTheseFileTypes.Enabled = true;
                }
                else
                {
                    // Select something other than "Custom"
                    m_bStopRecursion = true;
                    ((ComboBox)sender).SelectedIndex = 0;
                    SledFindAndReplaceSettings.FindInFiles.LookInIndex = 0;
                    m_bStopRecursion = false;
                }

                form.Close();
            }
        }