C# Class Platform.AbstractMeter

Base class for IMeter implementations
Inheritance: AbstractModel, IMeter
Exibir arquivo Open project: platformdotnet/Platform

Private Properties

Property Type Description
NullMeter System

Public Methods

Method Description
ToString ( ) : string

Converts this meter to a string. The format is "CurrentValue/MaximumValue (Percent%)"

Protected Methods

Method Description
OnValueChanged ( ) : void

Raises the ValueChanged event. The current value is retrieved form the CurrentValue property and the previous value is automatically retrieved from PreviousValue.

OnValueChanged ( MeterEventArgs eventArgs ) : void

Raises the ValueChanged event.

OnValueChanged ( object newValue ) : void

Raises the ValueChanged event. The previous value is automatically retrieved from PreviousValue.

OnValueChanged ( object oldValue, object newValue ) : void

Raises the ValueChanged event.

Private Methods

Method Description
NullMeter ( ) : System

Method Details

OnValueChanged() protected method

Raises the ValueChanged event. The current value is retrieved form the CurrentValue property and the previous value is automatically retrieved from PreviousValue.
protected OnValueChanged ( ) : void
return void

OnValueChanged() protected method

Raises the ValueChanged event.
protected OnValueChanged ( MeterEventArgs eventArgs ) : void
eventArgs MeterEventArgs The arguments for the event
return void

OnValueChanged() protected method

Raises the ValueChanged event. The previous value is automatically retrieved from PreviousValue.
protected OnValueChanged ( object newValue ) : void
newValue object The newValue
return void

OnValueChanged() protected method

Raises the ValueChanged event.
protected OnValueChanged ( object oldValue, object newValue ) : void
oldValue object The old (previous) value
newValue object The new (current) value
return void

ToString() public method

Converts this meter to a string. The format is "CurrentValue/MaximumValue (Percent%)"
public ToString ( ) : string
return string