예제 #1
0
        private void entryFound(Find find)
        {
            switch (find.Type)
            {
            case EntryType.File:
                if (!_fileNameFilter(find.Path))
                {
                    return;
                }
                break;

            case EntryType.Directory:
                break;

            default:
                throw new NotSupportedException($"{find.Type} is not supported");
            }

            EntryFound?.Invoke(this, find);
            processFoundEntry(find.Type, find.Path);
        }
예제 #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="message"></param>
 private void OnEntryFound(AutoRunEntry autoRunEntry)
 {
     EntryFound?.Invoke(autoRunEntry);
 }
 protected virtual void OnEntryFound(string str)
 {
     EntryFound?.Invoke(this, str);
 }