public void RegisterEvents(DataChanged dataChanged,
                            DirectoryChanged directoryChanged,
                            DirectoryNameChanged directoryNameChanged,
                            NavigateFiles navigateFiles,
                            GetAllFilesDelegate ListAllCheckedFiles,
                            GetAllFilesDelegate ListSelectedDirectory)
 {
     foreach (IPictureDetailControllerBase p in this)
     {
         p.DataChangedEvent          += dataChanged;
         p.DirectoryChangedEvent     += directoryChanged;
         p.DirectoryNameChangedEvent += directoryNameChanged;
         p.NavigateFilesEvent        += navigateFiles;
         p.SetGetAllFilesDelegate(ListAllCheckedFiles, ListSelectedDirectory);
     }
 }
 private void OnDirectoryNameChanged(object sender, EventArgs e)
 {
     //Invoke.
     DirectoryNameChanged?.Invoke(sender, e);
 }