Example #1
0
 /// <summary>Initializes a new instance of the <see cref="ShellFileOperations"/> class.</summary>
 /// <param name="owner">The window that owns the modal dialog. This value can be <see langword="null"/>.</param>
 public ShellFileOperations(IWin32Window owner = null)
 {
     op = new IFileOperation();
     if (owner != null)
     {
         op.SetOwnerWindow(owner.Handle);
     }
     sink       = new OpSink(this);
     sinkCookie = op.Advise(sink);
 }
Example #2
0
 /// <summary>Initializes a new instance of the <see cref="ShellFileOperations"/> class.</summary>
 /// <param name="owner">The window that owns the modal dialog. This value can be <see langword="null"/>.</param>
 public ShellFileOperations(HWND owner = default)
 {
     op = new IFileOperation();
     if (owner != default)
     {
         op.SetOwnerWindow(owner);
     }
     sink       = new OpSink(this);
     sinkCookie = op.Advise(sink);
 }