Class FileSystemInfoWrapperFactoryBase
Base factory class for creating FileSystemInfoWrappers from System.IO.FileSystemInfos.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Controls.FileDialogs
Assembly: Telerik.Windows.Controls.FileDialogs.dll
Syntax
public abstract class FileSystemInfoWrapperFactoryBase
Constructors
FileSystemInfoWrapperFactoryBase()
Declaration
protected FileSystemInfoWrapperFactoryBase()
Methods
CleanupPath(String, DirectoryInfoWrapper, Boolean)
Called when a file path no longer exists (for example when a file is moved, renamed or deleted).
Declaration
public abstract void CleanupPath(string filePath, DirectoryInfoWrapper parentWrapper, bool isRename = false)
Parameters
System.String
filePath
The path that no longer exists. |
DirectoryInfoWrapper
parentWrapper
The DirectoryInfoWrapper of the parent folder. |
System.Boolean
isRename
Indicates whether the file is being renamed causing deleted event. |
ShouldCreateRequestedInfo(DirectoryInfo)
Returns a value indicating whether a DirectoryInfoWrapper will be created for the passed System.IO.DirectoryInfo.
Declaration
protected virtual bool ShouldCreateRequestedInfo(DirectoryInfo directoryInfo)
Parameters
System.IO.DirectoryInfo
directoryInfo
|
Returns
System.Boolean
|
TryGetConcreteFileSystemInfoWrapper(FileSystemInfo, out FileSystemInfoWrapper)
Returns FileSystemInfoWrappers from System.IO.FileSystemInfos.
Declaration
public abstract bool TryGetConcreteFileSystemInfoWrapper(FileSystemInfo fileSystemInfo, out FileSystemInfoWrapper fileSystemInfoWrapper)
Parameters
System.IO.FileSystemInfo
fileSystemInfo
|
FileSystemInfoWrapper
fileSystemInfoWrapper
|
Returns
System.Boolean
|
TryGetDirectoryInfoWrapper(DirectoryInfo, out DirectoryInfoWrapper)
Returns the DirectoryInfoWrapper for a specific System.IO.DirectoryInfo
Declaration
public abstract bool TryGetDirectoryInfoWrapper(DirectoryInfo directoryInfo, out DirectoryInfoWrapper directoryInfoWrapper)
Parameters
System.IO.DirectoryInfo
directoryInfo
|
DirectoryInfoWrapper
directoryInfoWrapper
|
Returns
System.Boolean
|
Events
ChildFileDeleted
Occurs when a child file or folder is deleted/removed.
Declaration
public event EventHandler<ChildFileDeletedEventArgs> ChildFileDeleted
Event Type
System.EventHandler<ChildFileDeletedEventArgs>
|
DirectoryRequesting
Occurs when DirectoryInfo wrapper is about to be created. User can cancel the creation by handling the event and setting the DirectoryRequestingEventArgs 's Cancel property to true.
Declaration
public event EventHandler<DirectoryRequestingEventArgs> DirectoryRequesting
Event Type
System.EventHandler<DirectoryRequestingEventArgs>
|
ExceptionRaised
Occurs when creating a FileSystemInfo wrapper or DirectoryInfo wrapper produces an exception.
Declaration
public event EventHandler<FileBrowserExceptionRaisedEventArgs> ExceptionRaised
Event Type
System.EventHandler<FileBrowserExceptionRaisedEventArgs>
|