@@ -43,7 +43,7 @@ private async void ListView_ItemClick(object sender, ItemClickEventArgs e)
4343                if  ( userInput  !=  null ) 
4444                { 
4545                    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 )  } ) ; 
4747                } 
4848            } 
4949            else  if  ( ( e . ClickedItem  as  AddListItem ) . Header  ==  "Text Document" ) 
@@ -53,7 +53,7 @@ private async void ListView_ItemClick(object sender, ItemClickEventArgs e)
5353                if  ( userInput  !=  null ) 
5454                { 
5555                    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"  } ) ; 
5757                } 
5858            } 
5959            else  if  ( ( e . ClickedItem  as  AddListItem ) . Header  ==  "Bitmap Image" ) 
@@ -63,7 +63,7 @@ private async void ListView_ItemClick(object sender, ItemClickEventArgs e)
6363                if  ( userInput  !=  null ) 
6464                { 
6565                    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"  } ) ; 
6767
6868                } 
6969            } 
0 commit comments