Sic.Framework/MECF.Framework.UI.Client/RecipeEditorLib/RecipeModel/Params/ComboxParam.cs

66 lines
1.4 KiB
C#

using System.Collections.ObjectModel;
using MECF.Framework.UI.Client.RecipeEditorLib.DGExtension.CustomColumn;
namespace MECF.Framework.UI.Client.RecipeEditorLib.RecipeModel.Params
{
public class ComboxParam : ParamBaseWithGenericValue<string>
{
#region Constructors
public ComboxParam()
{
}
public ComboxParam(string initValue) : base(initValue)
{
}
#endregion
public ObservableCollection<ComboxColumn.Option> Options { get; set; }
private bool _isEditable;
public bool IsEditable
{
get
{
return _isEditable;
}
set
{
_isEditable = value;
this.NotifyOfPropertyChange(nameof(IsEditable));
}
}
private string foreground = "Black";
public string Foreground
{
get
{
return foreground;
}
set
{
foreground = value;
this.NotifyOfPropertyChange(nameof(Foreground));
}
}
public string LoopBackground
{
get
{
return "Transparent";
}
}
public bool IsLoopItem
{
get { return false; }
}
}
}