CurrencyAlertClassic/KamiLib/Drawing/InfoBoxList.cs

35 lines
660 B
C#
Raw Permalink Normal View History

2023-10-13 09:38:52 +00:00
using System.Collections.Generic;
using KamiLib.Interfaces;
namespace KamiLib.Drawing;
public class InfoBoxList : DrawList<InfoBoxList>
{
private readonly InfoBox owner;
public InfoBoxList(InfoBox owner)
{
this.owner = owner;
DrawListOwner = this;
}
public InfoBox EndList()
{
foreach (var row in DrawActions)
{
owner.AddAction(row);
}
return owner;
}
public InfoBoxList AddRows(IEnumerable<IInfoBoxListConfigurationRow> rows)
{
foreach (var row in rows)
{
row.GetConfigurationRow(this);
}
return this;
}
}