using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
namespace WingServerCommon.Config.Parameters
{
///
/// string enum parameter
///
[DataContract]
public class EnumStringParameter : EnumParameterBase
{
public override void ChangeParameterValue(object value)
{
var stringParameter = value as StringParameter;
if (stringParameter != null)
{
Value = stringParameter.Value;
}
}
public void ChangeSource(IEnumerable newSource, string defaultValue)
{
Source = new List(newSource);
Value = defaultValue;
}
}
}