WPFChartPerformanceBenchmark
TestResult.cs
using System.Collections.Generic;
using System.ComponentModel;
namespace WPFChartPerformanceBenchmark
{
///
/// A simple value-object for storing test results
///
public clast TestResult : INotifyPropertyChanged
{
private Dictionary _results = new Dictionary();
public string TestName { get; set; }
public double this[string index]
{
get
{
return _results.ContainsKey(index) ? _results[index] : 0.0;
}
set
{
_results[index] = value;
OnPropertyChanged(null);
}
}
public event PropertyChangedEventHandler PropertyChanged;
protected void OnPropertyChanged(string property)
{
if (PropertyChanged != null)
{
PropertyChanged(this, new PropertyChangedEventArgs(property));
}
}
}
}