Files
laatzen/Common/TestUI/ViewModels/ItemsRowVM.cs
T

28 lines
588 B
C#

namespace TestUI.ViewModels
{
using System.Collections.ObjectModel;
public class ItemsRowVM : BaseVM
{
private int row;
public ItemsRowVM(int row)
{
this.row = row;
this.Items = new ObservableCollection<ItemVM>();
}
public ObservableCollection<ItemVM> Items { get; }
internal void Add(object value)
{
this.Items.Add(new ItemVM
{
Row = this.row,
Col = this.Items.Count,
Value = value
});
}
}
}