Пример #1
0
 private void Dispose(bool disposing)
 {
     if (disposing)
     {
         _textLabel.Dispose();
     }
 }
Пример #2
0
        protected override void Dispose(bool disposing)
        {
            if (m_recentClickTimer != null)
            {
                m_recentClickTimer.Dispose();
            }
            if (m_nameLabel != null)
            {
                m_nameLabel.Dispose();
            }
            if (m_highlightBG != null)
            {
                m_highlightBG.Dispose();
            }

            base.Dispose(disposing);
        }
Пример #3
0
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                m_packetAPI.Dispose();

                foreach (XNAButton btn in mainBtn)
                {
                    btn.Close();
                }

                newsTab.Dispose();
                inventory.Dispose();
                chatRenderer.Dispose();
                stats.Dispose();

                filler.Dispose();
                if (modeTexture != null)
                {
                    modeTexture.Dispose();
                }
                SpriteBatch.Dispose();

                pnlInventory.Close();
                pnlActiveSpells.Close();
                pnlPassiveSpells.Close();
                pnlChat.Close();
                pnlStats.Close();
                pnlOnline.Close();
                pnlParty.Close();
                pnlSettings.Close();

                chatTextBox.Dispose();
                statusLabel.Dispose();

                m_friendList.Dispose();
                m_ignoreList.Dispose();

                m_expInfo.Dispose();
                m_questInfo.Dispose();

                lock (clockLock)
                {
                    clockTimer.Change(Timeout.Infinite, Timeout.Infinite);
                    clockTimer.Dispose();
                    clockLabel.Dispose();
                }
            }

            base.Dispose(disposing);
        }
 protected virtual void Dispose(bool disposing)
 {
     _spriteBatch.Dispose();
     _mapItemText.Dispose();
 }