Esempio n. 1
0
 protected override void Dispose(bool disposing)
 {
     m_inventoryKey.Dispose();
     m_btnPaperdoll.Dispose();
     m_btnJunk.Dispose();
     m_btnDrop.Dispose();
 }
Esempio n. 2
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);
        }