Skip to content
This repository has been archived by the owner on Oct 30, 2019. It is now read-only.

Commit

Permalink
Couple region changes to Media
Browse files Browse the repository at this point in the history
  • Loading branch information
flibitijibibo committed Mar 22, 2014
1 parent 95d90b4 commit a87b7b9
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 14 deletions.
6 changes: 5 additions & 1 deletion MonoGame.Framework/Media/MediaLibrary.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ private PlaylistCollection PlayLists

#endregion

#region Public Constructors and Dispose Method
#region Public Constructors

public MediaLibrary()
{
Expand All @@ -50,6 +50,10 @@ public MediaLibrary(MediaSource mediaSource)
{
}

#endregion

#region Public Dispose Method

public void Dispose()
{
}
Expand Down
6 changes: 5 additions & 1 deletion MonoGame.Framework/Media/PlaylistCollection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -109,14 +109,18 @@ public bool Remove(Playlist item)

#endregion

#region Internal Constructor and Public Dispose Method
#region Internal Constructor

internal PlaylistCollection()
{
IsReadOnly = false;
innerlist = new List<Playlist>();
}

#endregion

#region Public Dispose Method

public void Dispose()
{
innerlist.Clear();
Expand Down
23 changes: 11 additions & 12 deletions MonoGame.Framework/Media/SongCollection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,17 @@ public bool IsReadOnly

#endregion

#region Public Constructors and Dispose Method
#region Internal Constructor

internal SongCollection()
{
IsReadOnly = false;
innerList = new List<Song>();
}

#endregion

#region Public Dispose Method

public void Dispose()
{
Expand Down Expand Up @@ -130,16 +140,5 @@ public bool Remove(Song item)
}

#endregion

#region Internal Methods

internal SongCollection()
{
IsReadOnly = false;
innerlist = new List<Song>();
}

#endregion

}
}

0 comments on commit a87b7b9

Please sign in to comment.