Details for button specification related events.
Inheritance: System.EventArgs
 /// <summary>
 /// Raises the Removed event.
 /// </summary>
 /// <param name="e">A NavButtonSpecEventArgs instance containing event data.</param>
 protected void OnRemoved(ButtonSpecEventArgs e)
 {
     if (Removed != null)
     {
         Removed(this, e);
     }
 }
 /// <summary>
 /// Raises the Inserted event.
 /// </summary>
 /// <param name="e">A NavButtonSpecEventArgs instance containing event data.</param>
 protected void OnInserted(ButtonSpecEventArgs e)
 {
     if (Inserted != null)
     {
         Inserted(this, e);
     }
 }
 /// <summary>
 /// Raises the Inserting event.
 /// </summary>
 /// <param name="e">A NavButtonSpecEventArgs instance containing event data.</param>
 protected void OnInserting(ButtonSpecEventArgs e)
 {
     e.ButtonSpec.Owner = _owner;
     if (Inserting != null)
     {
         Inserting(this, e);
     }
 }
 /// <summary>
 /// Raises the Removing event.
 /// </summary>
 /// <param name="e">A NavButtonSpecEventArgs instance containing event data.</param>
 protected void OnRemoving(ButtonSpecEventArgs e)
 {
     e.ButtonSpec.Owner = null;
     if (Removing != null)
     {
         Removing(this, e);
     }
 }
 /// <summary>
 /// Raises the Inserted event.
 /// </summary>
 /// <param name="e">A NavButtonSpecEventArgs instance containing event data.</param>
 protected void OnInserted(ButtonSpecEventArgs e)
 {
     Inserted?.Invoke(this, e);
 }
 /// <summary>
 /// Raises the Inserting event.
 /// </summary>
 /// <param name="e">A NavButtonSpecEventArgs instance containing event data.</param>
 protected void OnInserting(ButtonSpecEventArgs e)
 {
     e.ButtonSpec.Owner = Owner;
     Inserting?.Invoke(this, e);
 }
 /// <summary>
 /// Raises the Removed event.
 /// </summary>
 /// <param name="e">A NavButtonSpecEventArgs instance containing event data.</param>
 protected void OnRemoved(ButtonSpecEventArgs e)
 {
     Removed?.Invoke(this, e);
 }
 /// <summary>
 /// Raises the Removing event.
 /// </summary>
 /// <param name="e">A NavButtonSpecEventArgs instance containing event data.</param>
 protected void OnRemoving(ButtonSpecEventArgs e)
 {
     e.ButtonSpec.Owner = null;
     Removing?.Invoke(this, e);
 }
示例#9
0
 private void OnButtonSpecRemoved(object sender, ButtonSpecEventArgs e)
 {
     RecreateAll();
     PerformNeedPaint(true);
 }