public void Request(object sender, [NotNull] FileManagerEventArgs <TFileInformation> args) { if (args == null) { throw new ArgumentNullException(nameof(args)); } OnNewRequest(sender, args); }
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); } }
private void OnNewRequest(object sender, FileManagerEventArgs <TFileInformation> args) { Notify?.Invoke(sender, args); }