/// <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);
     }
 }
 private void OnButtonSpecRemoved(object sender, ButtonSpecEventArgs e)
 {
     RecreateAll();
     PerformNeedPaint(true);
 }