|
#Region "File Header"
'
' COPYRIGHT: Copyright 2009
' Infralution
'
#End Region
Imports System.ComponentModel
Imports Infralution.Localization.Wpf
''' <summary>
''' Sample enum illustrating used of a localized enum type converter
''' </summary>
<TypeConverter(GetType(SampleEnumConverter))> _
Public Enum SampleEnum
VerySmall
Small
Medium
Large
VeryLarge
End Enum
''' <summary>
''' Define the type converter for the Sample Enum
''' </summary>
''' <remarks></remarks>
Class SampleEnumConverter
Inherits ResourceEnumConverter
''' <summary>
''' Create a new instance of the converter using translations from the given resource manager
''' </summary>
''' <remarks></remarks>
Public Sub New()
MyBase.New(GetType(SampleEnum), My.Resources.ResourceManager)
End Sub
End Class
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
I am currently the Software Architect at
Infralution. Infralution develops .NET components and solutions including:
Globalizer - localization for .NET made easy. Let your translators instantly preview translations and even build the localized version of your application without giving away your source code.
Infralution Licensing System - simple, secure and affordable licensing for .NET apps and components
Virtual Tree - superfast, flexible, databound tree/list view