private bool IsMapped(string serverPath) { if (_currentWorkspace == null) { return(false); } return(_currentWorkspace.IsServerPathMapped(serverPath)); }
public void Show(Workspace workspace, string path) { bool root_folder = (path == VersionControlPath.RootFolder); bool path_mapped = (workspace != null && workspace.IsServerPathMapped(path)); getLatestItem.Sensitive = (path_mapped && !root_folder); workingFolderItem.Sensitive = (workspace != null && !root_folder); editRepoItem.Sensitive = root_folder; deleteRepoItem.Sensitive = root_folder; currentWorkspace = workspace; currentPath = path; Popup(); }
public void Show(Workspace workspace, string path) { bool root_folder = (path == VersionControlPath.RootFolder); bool path_mapped = workspace.IsServerPathMapped(path); getLatestItem.Sensitive = (path_mapped && !root_folder); currentWorkspace = workspace; currentPath = path; Popup(); }
private static bool IsMapped(Workspace workspace, string targetItem) { return workspace.IsServerPathMapped(targetItem); }
public bool IsServerPathMapped(Workspace workspace, string serverItem) { return workspace.IsServerPathMapped(serverItem); }