public string this[string index] { get { if (_values.ContainsKey(index.Trim())) { return _values[index.Trim()]; } return ""; } set { var args = new NodeValueChangedEventArgs(index.Trim(), value.Trim()); OnValueChanged(args); _values[args.ValueName] = args.NewValue; } }
private void OnValueChanged(NodeValueChangedEventArgs args) { if (valueChanged != null) { valueChanged(this, args); } }