예제 #1
0
 /// <summary>
 /// Disposes of the resources (other than memory) used by the <see cref="RibbonBarPage" />.
 /// </summary>
 /// <param name="disposing">true when this method is called by the application rather than a finalizer.</param>
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (this._groups != null)
         {
             this._groups.Clear(true);
             this._groups = null;
         }
     }
     base.Dispose(disposing);
 }
예제 #2
0
 /// <summary>
 /// Disposes of the resources (other than memory) used by the <see cref="RibbonBarPage" />.
 /// </summary>
 /// <param name="disposing">true when this method is called by the application rather than a finalizer.</param>
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (this._groups != null)
         {
             this._groups.Clear(true);
             this._groups = null;
         }
         this.RibbonBar?.Pages.Remove(this);
     }
     base.Dispose(disposing);
 }