private static bool IsAlfresco42OrLater(CmisSync.Lib.Config.SyncConfig.SyncFolder repo, Uri newUrl) { try { CmisUtils.GetSubfolders( repo.RepositoryId, repo.RemotePath, newUrl, repo.Account.Credentials); return true; } catch (Exception) { return false; } }
private static bool IsAlfresco42OrLater(CmisSync.Lib.Config.SyncConfig.Folder folder, string newUrl) { try { CmisUtils.GetSubfolders( folder.RepositoryId, folder.RemotePath, newUrl, folder.UserName, Crypto.Deobfuscate(folder.ObfuscatedPassword)); return true; } catch (Exception e) { return false; } }
internal void editAccount(CmisSync.Lib.Config.SyncConfig.Account account) { if (account == null) { return; } Views.AccountWindow w = new Views.AccountWindow(new ViewModels.AccountViewModel(this, account)); w.ShowDialog(); }