Make all Implementation classes generic
This commit is contained in:
Родитель
9faea9a8bb
Коммит
c46fda1fe0
|
@ -20,12 +20,12 @@ namespace Microcharts
|
|||
///
|
||||
/// A bar chart.
|
||||
/// </summary>
|
||||
public class BarChartImplementation : PointChartImplementation<IBarChart>
|
||||
public class BarChartImplementation<T> : PointChartImplementation<T> where T : IBarChart
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="T:Microcharts.BarChart"/> class.
|
||||
/// </summary>
|
||||
public BarChartImplementation(IBarChart control) : base(control)
|
||||
public BarChartImplementation(T control) : base(control)
|
||||
{
|
||||
PointSize = 0;
|
||||
}
|
||||
|
|
|
@ -17,13 +17,6 @@ namespace Microcharts
|
|||
{
|
||||
}
|
||||
|
||||
public class PointChartImplementation : PointChartImplementation<IPointChart>
|
||||
{
|
||||
public PointChartImplementation(IPointChart control) : base(control)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// ![chart](../images/Point.png)
|
||||
///
|
||||
|
|
|
@ -8,7 +8,7 @@ namespace SimpleControls.Wpf
|
|||
{
|
||||
public BarChart()
|
||||
{
|
||||
InitImplementation(new BarChartImplementation(this));
|
||||
InitImplementation(new BarChartImplementation<IBarChart>(this));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@ namespace SimpleControls.Wpf
|
|||
{
|
||||
public PointChart()
|
||||
{
|
||||
InitImplementation(new PointChartImplementation(this));
|
||||
InitImplementation(new PointChartImplementation<IPointChart>(this));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче