Cleanup around base collection types. (#59)

* Hardware in IGroup is now IEnumerable. No point to call ToArray each time.

* Use ValueTuple insead of custom pair.

* ListSet -> HashSet

* Ring Collection -> List

* ReadOnlyArray -> ReadOnlyList
This commit is contained in:
Michal
2018-10-30 14:44:41 +01:00
committed by Phyxion
parent 9900f5c0de
commit 5d89cdc43d
32 changed files with 74 additions and 497 deletions
+1 -2
View File
@@ -18,7 +18,6 @@ using OxyPlot;
using OxyPlot.Axes;
using OxyPlot.WindowsForms;
using OxyPlot.Series;
using OpenHardwareMonitor.Collections;
namespace OpenHardwareMonitor.GUI {
public class PlotPanel : UserControl {
@@ -212,7 +211,7 @@ namespace OpenHardwareMonitor.GUI {
IDictionary<ISensor, Color> colors) {
this.model.Series.Clear();
ListSet<SensorType> types = new ListSet<SensorType>();
var types = new System.Collections.Generic.HashSet<SensorType>();
foreach (ISensor sensor in sensors) {
var series = new LineSeries();