public void SetArray <T>(string name, IList <T> value) { DataArray subtree = GetSubtree(name, true); subtree.SetValue("count", value.Count); DataArray data = subtree.GetSubtree("data", true); for (int i = 0; i < value.Count; i++) { data.InternalSetValue(value[i], i); } RaisePropertyChangedEvent(); }
public void SetValue(string name, object value, int index) { DataArray tree = GetSubtree(name, true); tree.InternalSetValue(value, index); }