Sic04/FrameworkLocal/UIClient/RecipeEditorLib/RecipeModel/Params/StringParam.cs

38 lines
737 B
C#
Raw Normal View History

namespace RecipeEditorLib.RecipeModel.Params
2022-09-19 09:16:33 +08:00
{
public class StringParam : ParamBaseWithGenericValue<string>
2022-09-19 09:16:33 +08:00
{
#region Constructors
public StringParam()
{
}
public StringParam(string initValue) : base(initValue)
{
}
#endregion
#region Properties
public override bool IsHideValue
2022-09-19 09:16:33 +08:00
{
get
{
if (Name == RecipColNo.Name.ToString())
return false;
return _isHideValue;
}
2022-09-19 09:16:33 +08:00
set
{
_isHideValue = value;
NotifyOfPropertyChange(nameof(IsHideValue));
2022-09-19 09:16:33 +08:00
}
}
#endregion
2022-09-19 09:16:33 +08:00
}
}