Added additional constructors to CustomOptionFieldChoice

This commit is contained in:
Michael Becker 2014-08-04 09:19:13 -04:00
parent da967f41e3
commit 5ae4110196

View File

@ -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)
{
}