Class CounterPresenterBase
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
Properties
CategoryName
public string CategoryName { get; set; }
Property Value
CounterName
public string CounterName { get; set; }
Property Value
InstanceName
public string InstanceName { get; set; }
Property Value
Interval
public double Interval { get; set; }
Property Value
MaxValue
说明
public float MaxValue { get; set; }
Property Value
MinValue
说明
public float MinValue { get; set; }
Property Value
StartCommand
public RelayCommand StartCommand { get; }
Property Value
StopCommand
public RelayCommand StopCommand { get; }
Property Value
UseAlarm
说明
public bool UseAlarm { get; set; }
Property Value
Methods
CheckValue(float)
protected virtual bool CheckValue(float value)
Parameters
value
float
Returns
ConvertToValue(float)
protected virtual string ConvertToValue(float value)
Parameters
value
float
Returns
ConvertToValues(IEnumerable<float>)
protected virtual string ConvertToValues(IEnumerable<float> values)
Parameters
values
IEnumerable<float>
Returns
CreatePerformanceCounters()
protected virtual IEnumerable<PerformanceCounter> CreatePerformanceCounters()
Returns
NextValue()
public virtual string NextValue()
Returns
OnMaxMinValueChanged()
protected virtual void OnMaxMinValueChanged()
Start()
public void Start()
Stop()
public void Stop()