Пример #1
0
 public FilesystemHelpers(IShellPage associatedInstance, CancellationToken cancellationToken)
 {
     this.associatedInstance   = associatedInstance;
     this.cancellationToken    = cancellationToken;
     this.filesystemOperations = new FilesystemOperations(this.associatedInstance);
     this.recycleBinHelpers    = new RecycleBinHelpers(this.associatedInstance);
 }
Пример #2
0
        public void Dispose()
        {
            recycleBinHelpers?.Dispose();

            recycleBinHelpers  = null;
            associatedInstance = null;
        }
Пример #3
0
        public void Dispose()
        {
            filesystemOperations?.Dispose();

            filesystemOperations = null;
            recycleBinHelpers    = null;
            associatedInstance   = null;
        }
Пример #4
0
 public FilesystemOperations(IShellPage associatedInstance)
 {
     this.associatedInstance = associatedInstance;
     recycleBinHelpers       = new RecycleBinHelpers(this.associatedInstance);
 }
 public virtual void EmptyRecycleBin(RoutedEventArgs e)
 {
     RecycleBinHelpers.EmptyRecycleBin(associatedInstance);
 }
 public virtual async void EmptyRecycleBin(RoutedEventArgs e)
 {
     await RecycleBinHelpers.S_EmptyRecycleBin();
 }