Пример #1
0
        public void ConfigureDefaultFolder(Folder folder)
        {
            if (!IsAuthorized)
            {
                throw new Exception("Not authorized!");
            }
            var updatedFolder = FolderManager.GetInstance(folder);

            if (folder == null)
            {
                throw new ArgumentException("Folder is not found!");
            }
            DefaultFolder = updatedFolder;
        }
Пример #2
0
        public void ConfigureDefaultFolder(string displayFolderName)
        {
            if (!IsAuthorized)
            {
                throw new Exception("Not authorized!");
            }
            var folder = FolderManager.GetInstance(displayFolderName);

            if (folder == null)
            {
                throw new ArgumentException("Folder is not found!");
            }
            DefaultFolder = folder;
        }