C# Class DataServer.Model

Inheritance: Caliburn.Micro.PropertyChangedBase, IConvertibleXml
显示文件 Open project: TNOCS/csTouch Class Usage Examples

Private Properties

Property Type Description
Clone Model

Public Methods

Method Description
FromXml ( System.Xml.Linq.XElement el ) : void
GetBoolean ( string name, bool defaultValue ) : bool

Return the boolean value belonging to the InputParameter.

GetColor ( string name, Color defaultColor ) : Color

Return the color belonging to the InputParameter.

GetColorFromName ( string name, Color defaultColor ) : Color

Return the color belonging to the InputParameter.

GetDouble ( string name, double defaultValue ) : double

Return the double value belonging to the InputParameter. Tries to parse the double using the invariant culture and the Dutch culture (i.e. using comma)

GetInt ( string name, int defaultValue ) : int

Return the integer value belonging to the InputParameter.

GetString ( string name ) : string

Return the string belonging to the InputParameter.

ToXml ( ) : System.Xml.Linq.XElement

Private Methods

Method Description
Clone ( ) : Model

Method Details

FromXml() public method

public FromXml ( System.Xml.Linq.XElement el ) : void
el System.Xml.Linq.XElement
return void

GetBoolean() public method

Return the boolean value belonging to the InputParameter.
public GetBoolean ( string name, bool defaultValue ) : bool
name string Name of the InputParameter
defaultValue bool Default integer value
return bool

GetColor() public method

Return the color belonging to the InputParameter.
public GetColor ( string name, Color defaultColor ) : Color
name string Name of the InputParameter
defaultColor Color Default color value
return Color

GetColorFromName() public method

Return the color belonging to the InputParameter.
public GetColorFromName ( string name, Color defaultColor ) : Color
name string Name of the InputParameter
defaultColor Color Default color value
return Color

GetDouble() public method

Return the double value belonging to the InputParameter. Tries to parse the double using the invariant culture and the Dutch culture (i.e. using comma)
public GetDouble ( string name, double defaultValue ) : double
name string Name of the InputParameter
defaultValue double Default double value
return double

GetInt() public method

Return the integer value belonging to the InputParameter.
public GetInt ( string name, int defaultValue ) : int
name string Name of the InputParameter
defaultValue int Default integer value
return int

GetString() public method

Return the string belonging to the InputParameter.
public GetString ( string name ) : string
name string Name of the InputParameter
return string

ToXml() public method

public ToXml ( ) : System.Xml.Linq.XElement
return System.Xml.Linq.XElement