27 lines
833 B
C#
27 lines
833 B
C#
namespace InspectionUI.ViewModels
|
|
{
|
|
using OmniPlus;
|
|
|
|
public class RotationsHeaderRow : ItemsGridRowVM
|
|
{
|
|
public RotationsHeaderRow()
|
|
{
|
|
var pruefpunkte = OmniContext
|
|
.Current
|
|
.Auftrag
|
|
.Pruefpunkte;
|
|
|
|
this.Add(new ItemsGridHeaderVM { Width = ItemsGridHeaderVM.Auto });
|
|
this.Add(new ItemsGridHeaderVM { Value = "Rotationen", Width = ItemsGridHeaderVM.Star });
|
|
this.Add(new ItemsGridHeaderVM { Width = ItemsGridHeaderVM.Star });
|
|
|
|
foreach (var pp in pruefpunkte)
|
|
{
|
|
this.Add(new ItemsGridHeaderVM { Value = $"{pp.Rotations}", Width = ItemsGridHeaderVM.Star });
|
|
}
|
|
|
|
this.Add(new ItemsGridHeaderVM { Width = ItemsGridHeaderVM.Star });
|
|
}
|
|
}
|
|
}
|