FileSurfer 2.1.2
Cross-platform file manager with support for Git and SFTP
Loading...
Searching...
No Matches
FileSurfer.Core.ViewModels.PropertiesWindowViewModel Class Referencesealed

The PropertiesWindowViewModel is the ViewModel for the PropertiesWindow. More...

Inheritance diagram for FileSurfer.Core.ViewModels.PropertiesWindowViewModel:
Collaboration diagram for FileSurfer.Core.ViewModels.PropertiesWindowViewModel:

Public Member Functions

 PropertiesWindowViewModel (FileSystemEntryViewModel entry, string permissions)
 Creates a properties window view model and translates raw POSIX-style permission bits into user-facing permission descriptions.
void Show ()
 Opens or shows the underlying visual representation.

Properties

FileSystemEntryViewModel EntryVm [get]
 Gets the file-system entry view model displayed by the properties window.
required string Size [get]
 Gets the formatted size string shown in the properties window.
string? DateCreatedStr = null [get]
 Gets the formatted creation timestamp string.
required DateTime DateCreated
 Sets the raw creation date used to populate DateCreatedStr.
string? DateAccessedStr = null [get]
 Gets the formatted last-access timestamp string.
required DateTime DateAccessed
 Sets the raw last-access date used to populate DateAccessedStr.
string? DateModifiedStr = null [get]
 Gets the formatted last-modified timestamp string.
required DateTime DateModified
 Sets the raw last-modified date used to populate DateModifiedStr.
required string Owner [get]
 Gets the owner string displayed in the properties window.
string PermissionsOwner [get]
 Gets the human-readable permission description for the owner.
string PermissionsGroup [get]
 Gets the human-readable permission description for the group.
string PermissionsOther [get]
 Gets the human-readable permission description for others.

Detailed Description

The PropertiesWindowViewModel is the ViewModel for the PropertiesWindow.

Constructor & Destructor Documentation

◆ PropertiesWindowViewModel()

FileSurfer.Core.ViewModels.PropertiesWindowViewModel.PropertiesWindowViewModel ( FileSystemEntryViewModel entry,
string permissions )
inline

Creates a properties window view model and translates raw POSIX-style permission bits into user-facing permission descriptions.

Parameters
entryThe file-system entry the properties view model represents.
permissionsA nine-character permission string in rwx form (for owner, group, and others).

Member Function Documentation

◆ Show()

void FileSurfer.Core.ViewModels.PropertiesWindowViewModel.Show ( )
inline

Opens or shows the underlying visual representation.

Implements FileSurfer.Core.ViewModels.IDisplayable.

Here is the caller graph for this function:

Property Documentation

◆ DateAccessed

required DateTime FileSurfer.Core.ViewModels.PropertiesWindowViewModel.DateAccessed

Sets the raw last-access date used to populate DateAccessedStr.

◆ DateAccessedStr

string? FileSurfer.Core.ViewModels.PropertiesWindowViewModel.DateAccessedStr = null
get

Gets the formatted last-access timestamp string.

◆ DateCreated

required DateTime FileSurfer.Core.ViewModels.PropertiesWindowViewModel.DateCreated

Sets the raw creation date used to populate DateCreatedStr.

◆ DateCreatedStr

string? FileSurfer.Core.ViewModels.PropertiesWindowViewModel.DateCreatedStr = null
get

Gets the formatted creation timestamp string.

◆ DateModified

required DateTime FileSurfer.Core.ViewModels.PropertiesWindowViewModel.DateModified

Sets the raw last-modified date used to populate DateModifiedStr.

◆ DateModifiedStr

string? FileSurfer.Core.ViewModels.PropertiesWindowViewModel.DateModifiedStr = null
get

Gets the formatted last-modified timestamp string.

◆ EntryVm

FileSystemEntryViewModel FileSurfer.Core.ViewModels.PropertiesWindowViewModel.EntryVm
get

Gets the file-system entry view model displayed by the properties window.

◆ Owner

required string FileSurfer.Core.ViewModels.PropertiesWindowViewModel.Owner
get

Gets the owner string displayed in the properties window.

◆ PermissionsGroup

string FileSurfer.Core.ViewModels.PropertiesWindowViewModel.PermissionsGroup
get

Gets the human-readable permission description for the group.

◆ PermissionsOther

string FileSurfer.Core.ViewModels.PropertiesWindowViewModel.PermissionsOther
get

Gets the human-readable permission description for others.

◆ PermissionsOwner

string FileSurfer.Core.ViewModels.PropertiesWindowViewModel.PermissionsOwner
get

Gets the human-readable permission description for the owner.

◆ Size

required string FileSurfer.Core.ViewModels.PropertiesWindowViewModel.Size
get

Gets the formatted size string shown in the properties window.


The documentation for this class was generated from the following file: