C# Класс DataServer.Model

Наследование: Caliburn.Micro.PropertyChangedBase, IConvertibleXml
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
Clone Model

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
Clone ( ) : Model

Описание методов

FromXml() публичный Метод

public FromXml ( System.Xml.Linq.XElement el ) : void
el System.Xml.Linq.XElement
Результат void

GetBoolean() публичный Метод

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
Результат bool

GetColor() публичный Метод

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
Результат Color

GetColorFromName() публичный Метод

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
Результат Color

GetDouble() публичный Метод

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
Результат double

GetInt() публичный Метод

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
Результат int

GetString() публичный Метод

Return the string belonging to the InputParameter.
public GetString ( string name ) : string
name string Name of the InputParameter
Результат string

ToXml() публичный Метод

public ToXml ( ) : System.Xml.Linq.XElement
Результат System.Xml.Linq.XElement