FileNameEditor.cs 683 B

123456789101112131415161718192021222324252627
  1. namespace InABox.Core
  2. {
  3. public class FileNameEditor : BaseDocumentEditor
  4. {
  5. public FileNameEditor() : this("All Files (*.*)|*.*")
  6. {
  7. }
  8. public FileNameEditor(string filter) : base(filter)
  9. {
  10. AllowView = true;
  11. RequireExisting = true;
  12. }
  13. public bool AllowView { get; set; }
  14. public bool RequireExisting { get; set; }
  15. protected override BaseEditor DoClone()
  16. {
  17. var result = (CloneBaseDocumentEditor() as FileNameEditor)!;
  18. result.AllowView = AllowView;
  19. result.RequireExisting = RequireExisting;
  20. return result;
  21. }
  22. }
  23. }