From 6977a6dfb60d5e5432c62a687d179f610b52d557 Mon Sep 17 00:00:00 2001 From: GrandDynamo <43609220+GrandDynamo@users.noreply.github.com> Date: Mon, 22 Jun 2020 02:40:42 +0200 Subject: [PATCH] Removed unwanted foreward slashes and added more comments. --- Main/MainWindowViewModel.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Main/MainWindowViewModel.cs b/Main/MainWindowViewModel.cs index e4308f6..eb91101 100644 --- a/Main/MainWindowViewModel.cs +++ b/Main/MainWindowViewModel.cs @@ -139,6 +139,9 @@ public MainWindowViewModel() GetUserInformation(); } + /// + /// Retrieves the user information to display the user's name and his profile picture. + /// public async void GetUserInformation() { CurrentUsername = "Hi, " + (await graph.GetOneDriveUserInformationAsync()).GivenName; @@ -152,6 +155,9 @@ public async void GetUserInformation() } } + /// + /// Reloads the cache of the drives and removes the item explorer view so the user needs to select a drive again to access explorer items. + /// /// private void ReloadCache(object obj) { @@ -203,7 +209,6 @@ public async void GetDrives(object obj) /// public async void GetChildrenFomDrive(object obj) { - // ParentItem = null; //Prevents exception when user clicks an empty space in the ListBox.