/// <summary> /// Internal constructor. Instances of this class should only /// be obtained from the <see cref="DiscMaster"/> object. /// </summary> /// <param name="owner">Disc master object which owns this object.</param> /// <param name="jolietDiscMaster">Imapi Joliet Disc</param> internal JolietDiscMaster( DiscMaster owner, IJolietDiscMaster jolietDiscMaster ) { if ( owner == null ) { throw new ArgumentNullException( "owner" ); } // End if (owner == null) if ( jolietDiscMaster == null ) { throw new ArgumentNullException( "jolietDiscMaster" ); } // End if (jolietDiscMaster == null) _owner = owner; _jolietDiscMaster = jolietDiscMaster; _rootStorage = new JolietDiscMasterStorage( owner ); }
/// <summary> /// Create a sub folder /// </summary> /// <param name="folderName">Name of the folder.</param> /// <returns>Sub folder</returns> public JolietDiscMasterStorage CreateSubfolder( string folderName ) { if ( !_subfolders.ContainsKey( folderName ) ) { var subfolder = new JolietDiscMasterStorage( _owner, folderName ); _subfolders.Add( folderName, subfolder ); //return subfolder; } // End if (!_subfolders.ContainsKey(folderName)) //JolietDiscMasterStorage subfoldera = new JolietDiscMasterStorage(_owner, folderName); //return subfoldera; return _subfolders[folderName]; }