Halyri - Häke  0.9.1
 All Classes Namespaces Functions Variables Enumerations Properties
MinuteConverter Class Reference

Class for converting time in minutes to a string and back. More...

Inherits IValueConverter.

Public Member Functions

object Convert (object value, Type targetType, object parameter, CultureInfo culture)
 Converts minutes to a string in format "x h x min". More...
 
object ConvertBack (object value, Type targetType, object parameter, CultureInfo culture)
 Converts a string of format "x h x min" to minutes. More...
 

Detailed Description

Class for converting time in minutes to a string and back.

<author>Ilkka Rautiainen</author>

Member Function Documentation

object Convert ( object  value,
Type  targetType,
object  parameter,
CultureInfo  culture 
)

Converts minutes to a string in format "x h x min".

Parameters
valuevalue
targetTypetargetType
parameterparameter
cultureculture
Returns
string in format "x h x min"
object ConvertBack ( object  value,
Type  targetType,
object  parameter,
CultureInfo  culture 
)

Converts a string of format "x h x min" to minutes.

Parameters
valuevalue
targetTypetargetType
parameterparameter
cultureculture
Returns
total minutes

The documentation for this class was generated from the following file: