PageRenderTime 9ms CodeModel.GetById 1ms app.highlight 4ms RepoModel.GetById 1ms 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
 1Imports PowerSong.SongDatabase.Style
 2Imports PowerSong.SongDatabase.Style.EBackgroundType
 3
 4Namespace Items
 5
 6    ''' <summary>
 7    ''' Represents details that describe how the background of a projection is overridden.
 8    ''' </summary>
 9    Public Class OverrideBackground
10
11        ''' <summary>
12        ''' Gets or sets the type of background (ie: solid, image...etc).
13        ''' </summary>
14        ''' <value>The type of background.</value>
15        Public Property Type() As EBackgroundType = None
16
17        ''' <summary>
18        ''' Gets or sets the value that relates to the type of background.
19        ''' </summary>
20        ''' <value>The value of the background (ie: a colour,  or image, depending on the background type).</value>
21        Public Property Value() As Object = Nothing
22
23        Public Sub New(ByVal type As EBackgroundType, ByVal value As Object)
24            Me.Type = type
25            Me.Value = value
26        End Sub
27
28    End Class
29
30End Namespace