Ejemplo n.º 1
0
 /// <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);
     }
 }
Ejemplo n.º 2
0
 /// <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);
 }
Ejemplo n.º 3
0
 /// <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);
 }