@@ -43,7 +43,7 @@ private async void ListView_ItemClick(object sender, ItemClickEventArgs e)
43
43
if ( userInput != null )
44
44
{
45
45
await folderToCreateItem . CreateFolderAsync ( userInput , CreationCollisionOption . FailIfExists ) ;
46
- App . ViewModel . FilesAndFolders . Add ( new ListedItem ( ) { FileName = userInput , FileDate = "Now" , EmptyImgVis = Visibility . Collapsed , FolderImg = Visibility . Visible , FileIconVis = Visibility . Collapsed , FileExtension = "Folder" , FileImg = null , FilePath = ( App . ViewModel . Universal . path + "\\ " + userInput ) } ) ;
46
+ App . ViewModel . FilesAndFolders . Add ( new ListedItem ( ) { FileName = userInput , FileDate = "Now" , EmptyImgVis = Visibility . Collapsed , FolderImg = Visibility . Visible , FileIconVis = Visibility . Collapsed , FileType = "Folder" , FileImg = null , FilePath = ( App . ViewModel . Universal . path + "\\ " + userInput ) } ) ;
47
47
}
48
48
}
49
49
else if ( ( e . ClickedItem as AddListItem ) . Header == "Text Document" )
@@ -53,7 +53,7 @@ private async void ListView_ItemClick(object sender, ItemClickEventArgs e)
53
53
if ( userInput != null )
54
54
{
55
55
await folderToCreateItem . CreateFileAsync ( userInput + ".txt" , CreationCollisionOption . FailIfExists ) ;
56
- App . ViewModel . FilesAndFolders . Add ( new ListedItem ( ) { FileName = userInput , FileDate = "Now" , EmptyImgVis = Visibility . Visible , FolderImg = Visibility . Collapsed , FileIconVis = Visibility . Collapsed , FileExtension = "Text Document" , FileImg = null , FilePath = ( App . ViewModel . Universal . path + "\\ " + userInput + ".txt" ) , DotFileExtension = ".txt" } ) ;
56
+ App . ViewModel . FilesAndFolders . Add ( new ListedItem ( ) { FileName = userInput , FileDate = "Now" , EmptyImgVis = Visibility . Visible , FolderImg = Visibility . Collapsed , FileIconVis = Visibility . Collapsed , FileType = "Text Document" , FileImg = null , FilePath = ( App . ViewModel . Universal . path + "\\ " + userInput + ".txt" ) , DotFileExtension = ".txt" } ) ;
57
57
}
58
58
}
59
59
else if ( ( e . ClickedItem as AddListItem ) . Header == "Bitmap Image" )
@@ -63,7 +63,7 @@ private async void ListView_ItemClick(object sender, ItemClickEventArgs e)
63
63
if ( userInput != null )
64
64
{
65
65
await folderToCreateItem . CreateFileAsync ( userInput + ".bmp" , CreationCollisionOption . FailIfExists ) ;
66
- App . ViewModel . FilesAndFolders . Add ( new ListedItem ( ) { FileName = userInput , FileDate = "Now" , EmptyImgVis = Visibility . Visible , FolderImg = Visibility . Collapsed , FileIconVis = Visibility . Collapsed , FileExtension = "BMP File" , FileImg = null , FilePath = ( App . ViewModel . Universal . path + "\\ " + userInput + ".bmp" ) , DotFileExtension = ".bmp" } ) ;
66
+ App . ViewModel . FilesAndFolders . Add ( new ListedItem ( ) { FileName = userInput , FileDate = "Now" , EmptyImgVis = Visibility . Visible , FolderImg = Visibility . Collapsed , FileIconVis = Visibility . Collapsed , FileType = "BMP File" , FileImg = null , FilePath = ( App . ViewModel . Universal . path + "\\ " + userInput + ".bmp" ) , DotFileExtension = ".bmp" } ) ;
67
67
68
68
}
69
69
}
0 commit comments