@@ -39,6 +39,7 @@ public class ItemViewModel
39
39
static string gotFolName ;
40
40
static string gotFolDate ;
41
41
static string gotFolPath ;
42
+ static string gotDotFileExtension ;
42
43
static string gotFolType ;
43
44
static Visibility gotFileImgVis ;
44
45
static Visibility gotEmptyImgVis ;
@@ -89,27 +90,6 @@ public static ProgressUIVisibility PVIS
89
90
private static ProgressUIPath pUIp = new ProgressUIPath ( ) ;
90
91
public static ProgressUIPath PUIP { get { return ItemViewModel . pUIp ; } }
91
92
92
- private static ProgressUIButtonText buttonText = new ProgressUIButtonText ( ) ;
93
- public static ProgressUIButtonText ButtonText { get { return ItemViewModel . buttonText ; } }
94
-
95
- private static CollisionBoxHeader collisionBoxHeader = new CollisionBoxHeader ( ) ;
96
- public static CollisionBoxHeader CollisionBoxHeader { get { return collisionBoxHeader ; } }
97
-
98
- private static CollisionBoxSubHeader collisionBoxSubHeader = new CollisionBoxSubHeader ( ) ;
99
- public static CollisionBoxSubHeader CollisionBoxSubHeader { get { return collisionBoxSubHeader ; } }
100
-
101
- private static CollisionUIVisibility collisionUIVisibility = new CollisionUIVisibility ( ) ;
102
- public static CollisionUIVisibility CollisionUIVisibility { get { return collisionUIVisibility ; } }
103
-
104
- private static CollisionBoxHeader conflictBoxHeader = new CollisionBoxHeader ( ) ;
105
- public static CollisionBoxHeader ConflictBoxHeader { get { return conflictBoxHeader ; } }
106
-
107
- private static CollisionBoxSubHeader conflictBoxSubHeader = new CollisionBoxSubHeader ( ) ;
108
- public static CollisionBoxSubHeader ConflictBoxSubHeader { get { return conflictBoxSubHeader ; } }
109
-
110
- private static CollisionUIVisibility conflictUIVisibility = new CollisionUIVisibility ( ) ;
111
- public static CollisionUIVisibility ConflictUIVisibility { get { return conflictUIVisibility ; } }
112
-
113
93
private static EmptyFolderTextState textState = new EmptyFolderTextState ( ) ;
114
94
public static EmptyFolderTextState TextState { get { return textState ; } }
115
95
@@ -270,6 +250,7 @@ public async void MemoryFriendlyGetItemsAsync(string path, CancellationToken tok
270
250
}
271
251
gotPath = file . Path . ToString ( ) ;
272
252
gotFolImg = Visibility . Collapsed ;
253
+ gotDotFileExtension = file . FileType ;
273
254
if ( isPhotoAlbumMode == false )
274
255
{
275
256
const uint requestedSize = 20 ;
@@ -296,7 +277,7 @@ public async void MemoryFriendlyGetItemsAsync(string path, CancellationToken tok
296
277
}
297
278
else
298
279
{
299
- FilesAndFolders . Add ( new ListedItem ( ) { EmptyImgVis = gotEmptyImgVis , FileImg = icon , FileIconVis = gotFileImgVis , FolderImg = gotFolImg , FileName = gotName , FileDate = gotDate , FileExtension = gotType , FilePath = gotPath } ) ;
280
+ FilesAndFolders . Add ( new ListedItem ( ) { DotFileExtension = gotDotFileExtension , EmptyImgVis = gotEmptyImgVis , FileImg = icon , FileIconVis = gotFileImgVis , FolderImg = gotFolImg , FileName = gotName , FileDate = gotDate , FileExtension = gotType , FilePath = gotPath } ) ;
300
281
}
301
282
}
302
283
catch
@@ -404,20 +385,6 @@ public static int UpdateProgUI(int level)
404
385
return ( int ) level ;
405
386
}
406
387
407
- public static async void DisplayCollisionUIWithArgs ( string header , string subHeader )
408
- {
409
- CollisionBoxHeader . Header = header ;
410
- CollisionBoxSubHeader . SubHeader = subHeader ;
411
- await GenericFileBrowser . collisionBox . ShowAsync ( ) ;
412
- }
413
-
414
- public static async void DisplayReviewUIWithArgs ( string header , string subHeader )
415
- {
416
- ConflictBoxHeader . Header = header ;
417
- ConflictBoxSubHeader . SubHeader = subHeader ;
418
- await GenericFileBrowser . reviewBox . ShowAsync ( ) ;
419
- }
420
-
421
388
public static async void FillTreeNode ( object item , TreeView EntireControl )
422
389
{
423
390
var pathToFillFrom = ( item as Classic_ListedFolderItem ) ? . FilePath ;
0 commit comments