rawaccel/grapher/Layouts/OptionLayout.cs
2020-09-07 15:19:39 -07:00

41 lines
702 B
C#

using grapher.Models.Options;
namespace grapher.Layouts
{
public class OptionLayout
{
#region Constructors
public OptionLayout(bool show, string name)
{
Show = show;
Name = name;
}
#endregion Constructors
#region Properties
private bool Show { get; }
private string Name { get; }
#endregion Properties
#region Methods
public void Layout(IOption option)
{
if (Show)
{
option.Show(Name);
}
else
{
option.Hide();
}
}
#endregion Methods
}
}