/// <summary> /// Renames the item. /// </summary> public void RenameItem() { var dialog = new InputWindow("Insert name here", this.Name); dialog.ShowDialog(); if (dialog.Answer != "") { GoogleDriveAPI.Rename(dialog.Answer, this.Id);; Parent.Expand(); } }
/// <summary> /// Creates a new directory inside the item (if it's a drive or a directory) /// </summary> public void CreateDirectory() { var dialog = new InputWindow("Insert name here", "New folder"); dialog.ShowDialog(); if (dialog.Answer != "") { GoogleDriveAPI.CreateDirectory(dialog.Answer, this.Id); Expand(); DirectoryStructureViewModel.ActionType[0] = DirectoryItemActionType.Create; } }