private void Dir_Tap(object sender, System.Windows.Input.GestureEventArgs e) { // Create a temporary directory that will be renamed in the new window string tempPath = FileUtils.GetNumberedDirectoryPath("Untitled", _currentDirectory.Path.PathString); Directory newDirectory = new Directory(new PathStr(tempPath)) { IsTemp = true }; FileUtils.CreateDirectory(newDirectory.Path.Parent.PathString, newDirectory.DisplayName); newDirectory.NavToRename(NavigationService, this); }
private void Dir_Tap(object sender, System.Windows.Input.GestureEventArgs e) { using (IsolatedStorageFile isf = IsolatedStorageFile.GetUserStoreForApplication()) { // Create a temporary directory that will be renamed in the new window string tempName = "." + Utils.GetUniqueName(_currentDirectory, isf); Directory newDirectory = new Directory(_currentDirectory, tempName) { IsTemp = true }; isf.CreateDirectory(newDirectory.Path.PathString); newDirectory.NavToRename(NavigationService); } }