private void OnFileFound(FileFoundEventArgs e)
        {
            EventHandler <FileFoundEventArgs> handler = FileFound;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Esempio n. 2
0
        private void Handle_FindAction_FileFound(object sender, FileFoundEventArgs e)
        {
            Util.DoAction(delegate
            {
                FilePath filePath = e.FilePath;

                if (filePath == null)
                {
                    return;
                }
                ListViewItem newItem = new ListViewItem();

                newItem.Text = filePath.File.Name;
                newItem.SubItems.Add(GetFolderName(e.FilePath.Path));
                newItem.SubItems.Add(filePath.File.Cat.CatName);
                newItem.SubItems.Add(filePath.File.FileLfCyc.LfCycStateName);
                newItem.ImageIndex = GetImageIndex(filePath.File.Name);
                newItem.Tag        = e.FilePath;
                _listView.InvokeIfRequired(() => _listView.Items.Add(newItem));
            });
        }