Beispiel #1
0
        public void Request(object sender, [NotNull] FileManagerEventArgs <TFileInformation> args)
        {
            if (args == null)
            {
                throw new ArgumentNullException(nameof(args));
            }

            OnNewRequest(sender, args);
        }
Beispiel #2
0
        public static void Request(object sender, [NotNull] FileManagerEventArgs <IFileInformation> args)
        {
            if (args == null)
            {
                throw new ArgumentNullException(nameof(args));
            }

            var typeGroups = args.SelectedFiles.GroupBy(information => information.GetType());

            foreach (var typeGroup in typeGroups)
            {
                _newRequests[typeGroup.Key].Invoke(sender, typeGroup);
            }
        }
Beispiel #3
0
 private void OnNewRequest(object sender, FileManagerEventArgs <TFileInformation> args)
 {
     Notify?.Invoke(sender, args);
 }