C# Class TrakHound_UI.Timeline.DateTimeConverter

Inheritance: System.ComponentModel.TypeConverter
Mostra file Open project: TrakHound/TrakHound-Community

Public Properties

Property Type Description
Calendar System.Globalization.Calendar
CultureInfo System.Globalization.CultureInfo

Public Methods

Method Description
CanConvertFrom ( ITypeDescriptorContext context, Type sourceType ) : bool
CanConvertTo ( ITypeDescriptorContext context, Type destinationType ) : bool
ConvertFrom ( ITypeDescriptorContext context, CultureInfo culture, object value ) : object
ConvertTo ( ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType ) : object
GetDay ( System.DateTime dt ) : string
GetDecades ( System.DateTime dt ) : string
GetMonth ( System.DateTime dt ) : string
GetYear ( System.DateTime dt ) : string
ParseDateTime ( string initialTime ) : System.DateTime

Parse initial date passed from XAML, could be DateTime string or 'today', 'now', 'yesterday', etc. constants.

Method Details

CanConvertFrom() public method

public CanConvertFrom ( ITypeDescriptorContext context, Type sourceType ) : bool
context ITypeDescriptorContext
sourceType System.Type
return bool

CanConvertTo() public method

public CanConvertTo ( ITypeDescriptorContext context, Type destinationType ) : bool
context ITypeDescriptorContext
destinationType System.Type
return bool

ConvertFrom() public method

public ConvertFrom ( ITypeDescriptorContext context, CultureInfo culture, object value ) : object
context ITypeDescriptorContext
culture System.Globalization.CultureInfo
value object
return object

ConvertTo() public method

public ConvertTo ( ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType ) : object
context ITypeDescriptorContext
culture System.Globalization.CultureInfo
value object
destinationType System.Type
return object

GetDay() public static method

public static GetDay ( System.DateTime dt ) : string
dt System.DateTime
return string

GetDecades() public static method

public static GetDecades ( System.DateTime dt ) : string
dt System.DateTime
return string

GetMonth() public static method

public static GetMonth ( System.DateTime dt ) : string
dt System.DateTime
return string

GetYear() public static method

public static GetYear ( System.DateTime dt ) : string
dt System.DateTime
return string

ParseDateTime() public static method

Parse initial date passed from XAML, could be DateTime string or 'today', 'now', 'yesterday', etc. constants.
public static ParseDateTime ( string initialTime ) : System.DateTime
initialTime string
return System.DateTime

Property Details

Calendar public_oe static_oe property

public static Calendar,System.Globalization Calendar
return System.Globalization.Calendar

CultureInfo public_oe static_oe property

public static CultureInfo,System.Globalization CultureInfo
return System.Globalization.CultureInfo