CurrencyAlertClassic/KamiLib/Drawing/InfoBoxTableRow.cs

24 lines
526 B
C#
Raw Normal View History

2023-10-13 09:38:52 +00:00
using System;
namespace KamiLib.Drawing;
public class InfoBoxTableRow : DrawList<InfoBoxTableRow>
{
private readonly InfoBoxTable owner;
public Action? FirstColumn => DrawActions.Count > 0 ? DrawActions[0] : null;
public Action? SecondColumn => DrawActions.Count > 1 ? DrawActions[1] : null;
public InfoBoxTableRow(InfoBoxTable owner)
{
this.owner = owner;
DrawListOwner = this;
}
public InfoBoxTable EndRow()
{
owner.AddRow(this);
return owner;
}
}