Пример #1
0
        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (components != null)
                {
                    components.Dispose();
                }

                if (mNotesContextMenu != null)
                {
                    mNotesContextMenu.Detach();
                }

                if (mURLDropDownMenu != null)
                {
                    mURLDropDownMenu.Destroy();
                }

                // Ensure all tabs are disposed, even if they aren't currentl visible
                mMultipleSelectionTab.Dispose();
                mFieldsTab.Dispose();
                mPropertiesTab.Dispose();
                mAllTextTab.Dispose();
            }
            base.Dispose(disposing);
        }
Пример #2
0
 private void PCADialog_FormClosed(object sender, FormClosedEventArgs e)
 {
     tsmiOpen.Dispose();
     tsmiCopy.Dispose();
     if (m_dynOpenUrl != null)
     {
         m_dynOpenUrl.Destroy();
     }
     SprEngine.FilterPlaceholderHints.Remove(Config.PlaceholderOldPW);
     SprEngine.FilterPlaceholderHints.Remove(Config.PlaceholderNewPW);
 }