C# Class NDG.Convertors.ServerUrlDisplayConverter

Converter which changes full server address (with name of servlets and protocol) to short URL (containing only IP address and port number) and converts back from short URL to full address.
Inheritance: IValueConverter
Exibir arquivo Open project: nokiadatagathering/WP7-Official

Public Methods

Method Description
Convert ( object value, Type targetType, object parameter, CultureInfo culture ) : object

Changes URL address from full address to short address by removing protocol and name of servlet.

ConvertBack ( object value, Type targetType, object parameter, CultureInfo culture ) : object

Changes URL address from short address to full address by adding protocol and name of servlet.

Method Details

Convert() public method

Changes URL address from full address to short address by removing protocol and name of servlet.
public Convert ( object value, Type targetType, object parameter, CultureInfo culture ) : object
value object Full URL address (with protocol and servlet name).
targetType System.Type The type of the binding target property.
parameter object The converter parameter to use.
culture System.Globalization.CultureInfo The culture to use in the converter.
return object

ConvertBack() public method

Changes URL address from short address to full address by adding protocol and name of servlet.
public ConvertBack ( object value, Type targetType, object parameter, CultureInfo culture ) : object
value object Short URL address (only IP address and port number).
targetType System.Type The type of the binding target property.
parameter object The converter parameter to use.
culture System.Globalization.CultureInfo The culture to use in the converter.
return object