Ejemplo n.º 1
0
        /// <summary>
        /// Releases all resources used by the <see cref="MySqlService"/> class
        /// </summary>
        /// <param name="disposing">If true this is called by Dispose(), otherwise it is called by the finalizer</param>
        protected virtual void Dispose(bool disposing)
        {
            if (disposing)
            {
                // Free managed resources
                if (_statusChangeTimer != null)
                {
                    _statusChangeTimer.Dispose();
                }

                if (_managementObject != null)
                {
                    _managementObject.Dispose();
                }

                if (MenuGroup != null)
                {
                    MenuGroup.Dispose();
                }
            }

            // Add class finalizer if unmanaged resources are added to the class
            // Free unmanaged resources if there are any
        }