mirror of
https://github.com/RawAccelOfficial/rawaccel.git
synced 2025-05-14 05:14:01 +02:00
41 lines
702 B
C#
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
|
|
}
|
|
}
|