aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Statistics/Models
diff options
context:
space:
mode:
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Statistics/Models')
-rw-r--r--Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Statistics/Models/StatisticsValueCollection.cs10
1 files changed, 5 insertions, 5 deletions
diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Statistics/Models/StatisticsValueCollection.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Statistics/Models/StatisticsValueCollection.cs
index eab4eecde..ef5527406 100644
--- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Statistics/Models/StatisticsValueCollection.cs
+++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Statistics/Models/StatisticsValueCollection.cs
@@ -20,7 +20,7 @@ namespace Tango.MachineStudio.Statistics.Models
{
public string Name { get; set; }
- public double Value { get; set; }
+ public object Value { get; set; }
public string Unit { get; set; }
}
@@ -139,7 +139,7 @@ namespace Tango.MachineStudio.Statistics.Models
_pieColors.Add(((SolidColorBrush)Application.Current.Resources["OrangeBrush"]).Color);
_pieColors.Add(((SolidColorBrush)Application.Current.Resources["GreenBrush"]).Color);
_pieColors.Add(((SolidColorBrush)Application.Current.Resources["BlueBrush100"]).Color);
- _pieColors.Add(Color.FromRgb(100, 184, 236));//blue
+ _pieColors.Add(Colors.Yellow);
PieJobSource = new LabeledSeriesCollection()
@@ -175,7 +175,7 @@ namespace Tango.MachineStudio.Statistics.Models
/// <summary>
/// Adds the statistics value.
/// </summary>
- public void AddStatisticsValue(string name, double value, string unit)
+ public void AddStatisticsValue(string name, object value, string unit)
{
StatisticsCollection.Add(new StatisticsValue() { Name = name, Value = value, Unit = unit });
RaisePropertyChanged("StatisticsCollection");
@@ -206,7 +206,7 @@ namespace Tango.MachineStudio.Statistics.Models
{
Title = "PPC",
Values = new ChartValues<int>() { PPCCount },
- Fill = new SolidColorBrush(_pieColors[2]),
+ Fill = new SolidColorBrush(_pieColors[4]),
DataLabels = true,
ToolTip = "",
LabelPoint = labelPoint
@@ -274,7 +274,7 @@ namespace Tango.MachineStudio.Statistics.Models
{
Title = "Solid",
Values = new ChartValues<int>() { solidCount },
- Fill = new SolidColorBrush(_pieColors[2]),
+ Fill = new SolidColorBrush(_pieColors[4]),
DataLabels = true,
ToolTip = "",
LabelPoint = labelPoint