29 lines
930 B
C#
29 lines
930 B
C#
namespace InspectionUI.ViewModels
|
|
{
|
|
using OmniPlus;
|
|
|
|
public class DefaultsRowVM : ItemsGridRowVM
|
|
{
|
|
public DefaultsRowVM()
|
|
{
|
|
this.Add(new ItemsGridHeaderVM());
|
|
this.Add(new ItemsGridHeaderVM { Value = "PP:" });
|
|
this.Add(new ItemsGridHeaderVM());
|
|
this.Add(new ItemsGridHeaderVM { Value = "0.0" });
|
|
|
|
var pruefpunkte = OmniContext
|
|
.Current
|
|
.Auftrag
|
|
.Pruefpunkte;
|
|
|
|
foreach (var pp in pruefpunkte)
|
|
{
|
|
this.Add(new ItemsGridHeaderVM { Value = $"{pp.Rotations}/{pp.Duration:0.0}" });
|
|
this.Add(new ItemsGridHeaderVM { Value = $"{pp.FlowM3H:0.000}" });
|
|
this.Add(new ItemsGridHeaderVM { Value = $"{pp.MinAccuracy}-{pp.MaxAccuracy}" });
|
|
}
|
|
|
|
this.Add(new ItemsGridHeaderVM { Value = "0.0" });
|
|
}
|
|
}
|
|
} |