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; }
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; }