예제 #1
0
            public void Dispose()
            {
                GC.SuppressFinalize(this);

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

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

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

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

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

                if (DeleteLink != null)
                {
                    DeleteLink.Dispose();
                }
            }
예제 #2
0
 protected virtual void DisposePageControls()
 {
     _dltEmailOptions?.Dispose();
     _dataListFooterItem?.Dispose();
     _dataListEditItem?.Dispose();
     _ddlAddOptions?.Dispose();
     _btnAdd?.Dispose();
     _txtAddRate?.Dispose();
     _txtAddDiscountRate?.Dispose();
     _ddlAddFrequency?.Dispose();
     _ddlEditType?.Dispose();
     _txtEditRate?.Dispose();
     _txtEditDiscountRate?.Dispose();
     _ddlEditFrequency?.Dispose();
 }
 public void ManageCampaignsTestsTearDown()
 {
     _txtGoToPage?.Dispose();
     _lbDeleteCampaign?.Dispose();
 }
예제 #4
0
        ///
        /// <summary>
        /// Enables a server control to perform final clean up before it is released from
        /// memory.
        /// </summary>
        /// <remarks>
        /// The Dispose method leaves the Control in an unusable state. After calling this
        /// method, you must release all references to the control so the memory it was
        /// occupying can be reclaimed by garbage collection.
        /// </remarks>
        /// <param name="disposing"><b>true</b> to release both managed and unmanaged resources; <b>false</b> to release only unmanaged resources.</param>
        ///
        protected virtual void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (_license != null)
                {
                    _license.Dispose();
                    _license = null;
                }

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

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

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

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

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

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

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

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

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

            return;
        }