Esempio n. 1
0
        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;
            }
        }
Esempio n. 2
0
        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;
            }
        }
Esempio n. 3
0
        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();
        }