public void GoToRelative(String relativePath) { try { if (relativePath != "") { if (Path.HasExtension(relativePath)) { //start process } else { if (Path1[Path1.Length - 1] != '\\') { Path1 = Path1 + "\\"; } Path1 = Path1 + relativePath; ContentRepository = PathProcess.GetDirectoryContentRepository(Path1, true); } } } catch (Exception e) { MessageBox.Show(e.Message, "Error", MessageBoxButton.OK, MessageBoxImage.Error); } }
public void GoTo(String path) { try { if (path != "") { if (Path.HasExtension(path)) { //start process } else { Path1 = path; ContentRepository = PathProcess.GetDirectoryContentRepository(Path1, true); } } } catch (Exception e) { MessageBox.Show(e.Message, "Error", MessageBoxButton.OK, MessageBoxImage.Error); } }