diff --git a/Terminal.Gui/Windows/FileDialog2.cs b/Terminal.Gui/Windows/FileDialog2.cs index c83c64e25..ee61e06d6 100644 --- a/Terminal.Gui/Windows/FileDialog2.cs +++ b/Terminal.Gui/Windows/FileDialog2.cs @@ -34,21 +34,78 @@ namespace Terminal.Gui { /// public class FileDialog2Style { + /// + /// Gets or sets the header text displayed in the Filename column of the files table. + /// public string FilenameColumnName { get; set; } = Strings.fdFilename; - public string SizeColumnName { get; set; } = Strings.fdSize; - public string ModifiedColumnName { get; set; } = Strings.fdModified; - public string TypeColumnName { get; set; } = Strings.fdType; - public string SearchCaption { get; internal set; } = Strings.fdSearchCaption; - public string PathCaption { get; internal set; } = Strings.fdPathCaption; - public string WrongFileTypeFeedback { get; internal set; } = Strings.fdWrongFileTypeFeedback; - public string DirectoryMustExistFeedback { get; internal set; } = Strings.fdDirectoryMustExistFeedback; - public string FileAlreadyExistsFeedback { get; internal set; } = Strings.fdFileAlreadyExistsFeedback; - public string FileMustExistFeedback { get; internal set; } = Strings.fdFileMustExistFeedback; - public string DirectoryAlreadyExistsFeedback { get; internal set; } = Strings.fdDirectoryAlreadyExistsFeedback; - public string FileOrDirectoryMustExistFeedback { get; internal set; } = Strings.fdFileOrDirectoryMustExistFeedback; + /// + /// Gets or sets the header text displayed in the Size column of the files table. + /// + public string SizeColumnName { get; set; } = Strings.fdSize; + + /// + /// Gets or sets the header text displayed in the Modified column of the files table. + /// + public string ModifiedColumnName { get; set; } = Strings.fdModified; + + /// + /// Gets or sets the header text displayed in the Type column of the files table. + /// + public string TypeColumnName { get; set; } = Strings.fdType; + + /// + /// Gets or sets the text displayed in the 'Search' text box when user has not supplied any input yet. + /// + public string SearchCaption { get; internal set; } = Strings.fdSearchCaption; + + /// + /// Gets or sets the text displayed in the 'Path' text box when user has not supplied any input yet. + /// + public string PathCaption { get; internal set; } = Strings.fdPathCaption; + + /// + /// Gets or sets the text on the 'Ok' button. Typically you may want to change this to + /// "Open" or "Save" etc. + /// public string OkButtonText { get; set; } = "Ok"; + /// + /// Gets or sets error message when user attempts to select a file type that is not one of + /// when is true. + /// + public string WrongFileTypeFeedback { get; internal set; } = Strings.fdWrongFileTypeFeedback; + + /// + /// Gets or sets error message when user selects a directory that does not exist and + /// is and is . + /// + public string DirectoryMustExistFeedback { get; internal set; } = Strings.fdDirectoryMustExistFeedback; + + /// + /// Gets or sets error message when user is + /// and user enters the name of an existing file (File system cannot have a folder with the same name as a file). + /// + public string FileAlreadyExistsFeedback { get; internal set; } = Strings.fdFileAlreadyExistsFeedback; + + /// + /// Gets or sets error message when user selects a file that does not exist and + /// is and is . + /// + public string FileMustExistFeedback { get; internal set; } = Strings.fdFileMustExistFeedback; + + /// + /// Gets or sets error message when user is + /// and user enters the name of an existing directory (File system cannot have a folder with the same name as a file). + /// + public string DirectoryAlreadyExistsFeedback { get; internal set; } = Strings.fdDirectoryAlreadyExistsFeedback; + + /// + /// Gets or sets error message when user selects a file/dir that does not exist and + /// is and is . + /// + public string FileOrDirectoryMustExistFeedback { get; internal set; } = Strings.fdFileOrDirectoryMustExistFeedback; + /// /// Gets the style settings for the table of files (in currently selected directory). ///