Added additional constructors to CustomOptionFieldChoice
This commit is contained in:
parent
da967f41e3
commit
5ae4110196
@ -51,6 +51,23 @@ namespace UniversalEditor
|
||||
public CustomOptionFieldChoice(string title) : this(title, title, false)
|
||||
{
|
||||
}
|
||||
public CustomOptionFieldChoice(object value)
|
||||
{
|
||||
if (value != null)
|
||||
{
|
||||
mvarTitle = value.ToString();
|
||||
}
|
||||
mvarValue = value;
|
||||
}
|
||||
public CustomOptionFieldChoice(object value, bool isDefault)
|
||||
{
|
||||
if (value != null)
|
||||
{
|
||||
mvarTitle = value.ToString();
|
||||
}
|
||||
mvarValue = value;
|
||||
mvarIsDefault = isDefault;
|
||||
}
|
||||
public CustomOptionFieldChoice(string title, object value) : this(title, value, false)
|
||||
{
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user