Esempio n. 1
0
        private void btnCacheSearch_Click(object sender, EventArgs e)
        {
            HeaderSearch.SearchWhat = tbSearchWhat.Text.Split(new char[] { ';' }, StringSplitOptions.RemoveEmptyEntries);
            HeaderSearch.SearchType = HeaderSearch.SearchTypes.Cache;
            HeaderSearch.StartSearch();

            this.Close();
        }
Esempio n. 2
0
        private void btnChooseFolder_Click(object sender, EventArgs e)
        {
            using (FolderBrowserDialog f = new FolderBrowserDialog())
            {
                if (f.ShowDialog() == DialogResult.OK)
                {
                    HeaderSearch.SearchWhat   = tbSearchWhat.Text.Split(new char[] { ';' }, StringSplitOptions.RemoveEmptyEntries);
                    HeaderSearch.SearchType   = HeaderSearch.SearchTypes.Folder;
                    HeaderSearch.SearchTarget = new string[] { f.SelectedPath };

                    new SearchCfgDlg().ShowDialog();

                    HeaderSearch.StartSearch();

                    this.Close();
                }
            }
        }
Esempio n. 3
0
        private void btnSelectFiles_Click(object sender, EventArgs e)
        {
            using (OpenFileDialog f = new OpenFileDialog())
            {
                f.Multiselect = true;

                if (f.ShowDialog() == DialogResult.OK)
                {
                    HeaderSearch.SearchWhat   = tbSearchWhat.Text.Split(new char[] { ';' }, StringSplitOptions.RemoveEmptyEntries);
                    HeaderSearch.SearchType   = HeaderSearch.SearchTypes.File;
                    HeaderSearch.SearchTarget = f.FileNames;

                    new SearchCfgDlg().ShowDialog();

                    HeaderSearch.StartSearch();

                    this.Close();
                }
            }
        }