Exemple #1
0
        void ReleaseDesignerOutlets()
        {
            if (InputTbox != null)
            {
                InputTbox.Dispose();
                InputTbox = null;
            }

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

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

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

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

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

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

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

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

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

            if (SelectFileBtn != null)
            {
                SelectFileBtn.Dispose();
                SelectFileBtn = null;
            }
        }
 protected override void UnloadContent()
 {
     //Disposing loaded content
     StartBtn.Dispose();
 }