/// <summary> /// Fires the <see cref="NewValueNeeded"/> event. /// </summary> /// <param name="args">Information about the event.</param> protected void OnNewValueNeeded(NewValueEventArgs args) { if (NewValueNeeded != null) { NewValueNeeded(this, args); } }
/// <summary> /// Fires the <see cref="NewValueNeeded"/> event. /// </summary> /// <param name="field">The <see cref="ObjectField"/> the new value is needed for.</param> /// <returns>The new value.</returns> protected object OnNewValueNeeded(ObjectField field) { if (NewValueNeeded != null) { NewValueEventArgs eventArgs = new NewValueEventArgs(field); NewValueNeeded(this, eventArgs); return(eventArgs.Value); } return(null); }
/// <summary> /// Gets called when a new value for the tree is needed by the model. /// </summary> /// <param name="sender">The sender of the event.</param> /// <param name="e">Information about the event.</param> private void objectValueNodeControl_NewValueNeeded(object sender, NewValueEventArgs e) { OnNewValueNeeded(e); }