File tree Expand file tree Collapse file tree 7 files changed +415
-261
lines changed Expand file tree Collapse file tree 7 files changed +415
-261
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ public AccessControlType AccessControlType
33
33
public string AccessControlTypeGlyph
34
34
=> AccessControlType switch
35
35
{
36
- AccessControlType . Allow => "\xF13E " ,
36
+ AccessControlType . Allow => "\xE73E " ,
37
37
_ => "\xF140 " // AccessControlType.Deny
38
38
} ;
39
39
Original file line number Diff line number Diff line change 1
1
using CommunityToolkit . Mvvm . ComponentModel ;
2
- using Files . App . Extensions ;
3
2
using System . Collections . Generic ;
4
3
using System . Text ;
5
4
using static Vanara . PInvoke . AdvApi32 ;
@@ -25,11 +24,14 @@ public string Glyph
25
24
26
25
public string ? Name { get ; set ; }
27
26
28
- public string DisplayName
29
- => string . IsNullOrEmpty ( Name ) ? "SecurityUnknownAccount" . GetLocalizedResource ( ) : Name ;
27
+ public string ? DisplayName
28
+ => string . IsNullOrEmpty ( Name ) ? Sid : Name ;
30
29
31
- public string FullNameOrSid
32
- => string . IsNullOrEmpty ( Name ) ? Sid : string . IsNullOrEmpty ( Domain ) ? Name : $ "{ Domain } \\ { Name } ";
30
+ public string ? FullNameOrSid
31
+ => string . IsNullOrEmpty ( Domain ) ? Sid : $ "{ Domain } \\ { Name } ";
32
+
33
+ public string ? FullNameHumanized
34
+ => string . IsNullOrEmpty ( Domain ) ? string . Empty : $ "({ Domain } \\ { Name } )";
33
35
34
36
public List < string > Groups { get ; set ; }
35
37
Original file line number Diff line number Diff line change 1642
1642
<value >You do not have permissions to view the security properties of this object. Click "Advanced permissions" to proceed.</value >
1643
1643
</data >
1644
1644
<data name =" SecurityOwnerLabel.Text" xml : space =" preserve" >
1645
- <value >Owner</value >
1645
+ <value >Owner: </value >
1646
1646
</data >
1647
1647
<data name =" SecurityUnknownOwnerText.Text" xml : space =" preserve" >
1648
1648
<value >Unknown owner</value >
1683
1683
<data name =" SecurityAdvancedAppliesToLabel.Text" xml : space =" preserve" >
1684
1684
<value >Applies to</value >
1685
1685
</data >
1686
- <data name =" SecurityAdvancedEntityLabel.Text " xml : space =" preserve" >
1687
- <value >Entity </value >
1686
+ <data name =" SecurityAdvancedPrincipal " xml : space =" preserve" >
1687
+ <value >Principal </value >
1688
1688
</data >
1689
1689
<data name =" SecurityAdvancedFlagsFilesLabel" xml : space =" preserve" >
1690
1690
<value >files</value >
Original file line number Diff line number Diff line change 5
5
using Files . App . Filesystem ;
6
6
using Files . App . Filesystem . Security ;
7
7
using Files . App . Helpers ;
8
- using System . Collections . Generic ;
9
- using System . Linq ;
8
+ using Microsoft . UI . Xaml ;
10
9
using System . Threading . Tasks ;
11
10
using Windows . Storage ;
12
11
@@ -91,6 +90,18 @@ public string DisableInheritanceOption
91
90
92
91
private bool _preserveInheritance ;
93
92
93
+ private GridLength _columnType = new ( 64d ) ;
94
+ public GridLength ColumnType { get => _columnType ; set => SetProperty ( ref _columnType , value ) ; }
95
+
96
+ private GridLength _columnPrincipal = new ( 200d ) ;
97
+ public GridLength ColumnPrincipal { get => _columnPrincipal ; set => SetProperty ( ref _columnPrincipal , value ) ; }
98
+
99
+ private GridLength _columnAccess = new ( 160d ) ;
100
+ public GridLength ColumnAccess { get => _columnAccess ; set => SetProperty ( ref _columnAccess , value ) ; }
101
+
102
+ private GridLength _columnInherited = new ( 70d ) ;
103
+ public GridLength ColumnInherited { get => _columnInherited ; set => SetProperty ( ref _columnInherited , value ) ; }
104
+
94
105
public RelayCommand ChangeOwnerCommand { get ; set ; }
95
106
public RelayCommand AddAccessControlEntryCommand { get ; set ; }
96
107
public RelayCommand RemoveAccessControlEntryCommand { get ; set ; }
You can’t perform that action at this time.
0 commit comments