Exemplo n.º 1
0
        /// <summary>
        /// Closes and disposes a <see cref="IPadContent"/>.
        /// </summary>
        public void UnloadPad(PadDescriptor content)
        {
            PadContentCollection.Remove(content);

            if (layout != null)
            {
                layout.UnloadPad(content);
            }
            content.Dispose();
        }
Exemplo n.º 2
0
 protected override void Dispose(bool disposing)
 {
     base.Dispose(disposing);
     if (disposing)
     {
         if (padDescriptor != null)
         {
             padDescriptor.Dispose();
             padDescriptor = null;
         }
     }
 }
		/// <summary>
		/// Closes and disposes a <see cref="IPadContent"/>.
		/// </summary>
		public void UnloadPad(PadDescriptor content)
		{
			PadContentCollection.Remove(content);
			
			if (layout != null) {
				layout.UnloadPad(content);
			}
			content.Dispose();
		}