Table of Contents

Class CounterPresenterBase

Namespace
HeBianGu.Systems.WinTool
Assembly
HeBianGu.Systems.WinTool.dll
public abstract class CounterPresenterBase : DisplayerViewModelBase, INotifyPropertyChanged, IDisplayer, ICounterPresenter
Inheritance
CounterPresenterBase
Implements
Derived
Inherited Members
Extension Methods

Constructors

CounterPresenterBase()

public CounterPresenterBase()

CounterPresenterBase(string, string, string)

public CounterPresenterBase(string categoryName, string instanceName, string counterName)

Parameters

categoryName string
instanceName string
counterName string

Properties

CategoryName

public string CategoryName { get; set; }

Property Value

string

CounterName

public string CounterName { get; set; }

Property Value

string

InstanceName

public string InstanceName { get; set; }

Property Value

string

Interval

public double Interval { get; set; }

Property Value

double

MaxValue

说明

public float MaxValue { get; set; }

Property Value

float

MinValue

说明

public float MinValue { get; set; }

Property Value

float

StartCommand

public RelayCommand StartCommand { get; }

Property Value

RelayCommand

StopCommand

public RelayCommand StopCommand { get; }

Property Value

RelayCommand

UseAlarm

说明

public bool UseAlarm { get; set; }

Property Value

bool

Methods

CheckValue(float)

protected virtual bool CheckValue(float value)

Parameters

value float

Returns

bool

ConvertToValue(float)

protected virtual string ConvertToValue(float value)

Parameters

value float

Returns

string

ConvertToValues(IEnumerable<float>)

protected virtual string ConvertToValues(IEnumerable<float> values)

Parameters

values IEnumerable<float>

Returns

string

CreatePerformanceCounters()

protected virtual IEnumerable<PerformanceCounter> CreatePerformanceCounters()

Returns

IEnumerable<PerformanceCounter>

NextValue()

public virtual string NextValue()

Returns

string

OnMaxMinValueChanged()

protected virtual void OnMaxMinValueChanged()

Start()

public void Start()

Stop()

public void Stop()