示例#1
0
 private PopupDelayedClose GetDelayClose()
 {
     if (m_DelayClose == null)
         m_DelayClose = new PopupDelayedClose();
     return m_DelayClose;
 }
示例#2
0
		/// <summary> 
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(m_ClickTimer!=null)
				{
					m_ClickTimer.Stop();
					m_ClickTimer.Dispose();
					m_ClickTimer=null;
				}

                if (m_DelayClose != null)
                {
                    m_DelayClose.Dispose();
                    m_DelayClose = null;
                }
                if (m_BaseItemContainer != null)
                    m_BaseItemContainer.Dispose();

                if (m_ImageList != null)
                    m_ImageList.Disposed -= new EventHandler(this.ImageListDisposed);
                if (m_ImageListMedium != null)
                    m_ImageListMedium.Disposed -= new EventHandler(this.ImageListDisposed);
                if (m_ImageListLarge != null)
                    m_ImageListLarge.Disposed -= new EventHandler(this.ImageListDisposed);

			}
			base.Dispose( disposing );
		}