PageRenderTime 41ms CodeModel.GetById 15ms RepoModel.GetById 0ms app.codeStats 0ms

/Source Code/SongDatabase/Items/OverrideBackground.vb

#
Visual Basic | 30 lines | 12 code | 7 blank | 11 comment | 0 complexity | 47851fc722c6089d296c26fb1c5b76bd MD5 | raw file
  1. Imports PowerSong.SongDatabase.Style
  2. Imports PowerSong.SongDatabase.Style.EBackgroundType
  3. Namespace Items
  4. ''' <summary>
  5. ''' Represents details that describe how the background of a projection is overridden.
  6. ''' </summary>
  7. Public Class OverrideBackground
  8. ''' <summary>
  9. ''' Gets or sets the type of background (ie: solid, image...etc).
  10. ''' </summary>
  11. ''' <value>The type of background.</value>
  12. Public Property Type() As EBackgroundType = None
  13. ''' <summary>
  14. ''' Gets or sets the value that relates to the type of background.
  15. ''' </summary>
  16. ''' <value>The value of the background (ie: a colour, or image, depending on the background type).</value>
  17. Public Property Value() As Object = Nothing
  18. Public Sub New(ByVal type As EBackgroundType, ByVal value As Object)
  19. Me.Type = type
  20. Me.Value = value
  21. End Sub
  22. End Class
  23. End Namespace