/Source Code/SongDatabase/PlayListItem.vb

# · Visual Basic · 42 lines · 13 code · 8 blank · 21 comment · 0 complexity · cd35f52c639bdb84437f91076e7730f8 MD5 · raw file

  1. Imports PowerSong.SongDatabase.Items
  2. ''' <summary>
  3. ''' Represents an item in a play list.
  4. ''' </summary>
  5. Public Class PlayListItem
  6. ''' <summary>
  7. ''' Gets or sets the <see cref="PowerSong.SongDatabase.Items.BaseItem" />.
  8. ''' </summary>
  9. ''' <value>The item this play list entry represents.</value>
  10. Public Property Item() As BaseItem = Nothing
  11. ''' <summary>
  12. ''' Gets or sets the style details of this play list item.
  13. ''' </summary>
  14. ''' <value>The style details of the play list item.</value>
  15. Public Property Style() As Style = Nothing
  16. ''' <summary>
  17. ''' Gets or sets the overriding background details.
  18. ''' </summary>
  19. ''' <value>The details for how the background is overridden in this play list item.</value>
  20. Public Property OverrideBackground() As OverrideBackground = Nothing
  21. ''' <summary>
  22. ''' Initializes a new instance of the <see cref="PlayListItem" /> class.
  23. ''' </summary>
  24. ''' <param name="item">The item to associate with the play list item.</param>
  25. ''' <param name="style">The style for the item.</param>
  26. ''' <param name="overrideBackground">Details concerning how the background will be overridden.</param>
  27. Public Sub New(ByVal item As BaseItem, _
  28. ByVal style As Style, _
  29. Optional ByVal overrideBackground As OverrideBackground = Nothing)
  30. Me.Item = item
  31. Me.Style = style
  32. Me.OverrideBackground = overrideBackground
  33. End Sub
  34. End Class