public void SetObjectData(IJsonReadData data) { ApplicationName = data.GetStringProperty("ApplicationName"); List <object> keys = data.GetProperty <List <object> >("Keys"); List <object> values = data.GetProperty <List <object> >("Values"); for (int i = 0; i < keys.Count; i++) { Data.Add(new KeyValuePair <XDataCode, object>((XDataCode)(keys[i]), values[i])); } }
public void SetObjectData(IJsonReadData data) { name = data.GetStringProperty("Name"); width = data.GetProperty <double>("Width"); scale = data.GetProperty <Scaling>("Scale"); }
public void SetObjectData(IJsonReadData data) { name = data.GetStringProperty("Name"); pattern = data.GetProperty <double[]>("Pattern"); scale = data.GetProperty <Scaling>("Scale"); }
public virtual void SetObjectData(IJsonReadData data) { Name = data.GetStringProperty("Name"); }