IFileDialog.cs 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. using System;
  2. using System.Windows.Forms;
  3. namespace PaintDotNet.SystemLayer
  4. {
  5. public interface IFileDialog
  6. : IDisposable
  7. {
  8. bool CheckPathExists
  9. {
  10. get;
  11. set;
  12. }
  13. bool DereferenceLinks
  14. {
  15. get;
  16. set;
  17. }
  18. string Filter
  19. {
  20. get;
  21. set;
  22. }
  23. int FilterIndex
  24. {
  25. get;
  26. set;
  27. }
  28. string InitialDirectory
  29. {
  30. get;
  31. set;
  32. }
  33. string Title
  34. {
  35. set;
  36. }
  37. /// <summary>
  38. /// Shows the common file dialog.
  39. /// </summary>
  40. /// <param name="owner">The owning window for this dialog.</param>
  41. /// <param name="uiCallbacks">
  42. /// A reference to an object that implements the IFileDialogUICallbacks interface. This
  43. /// may not be null.</param>
  44. DialogResult ShowDialog(IWin32Window owner, IFileDialogUICallbacks uiCallbacks);
  45. }
  46. }