void ReleaseDesignerOutlets()
        {
            if (TxtValidFrom != null)
            {
                TxtValidFrom.Dispose();
                TxtValidFrom = null;
            }

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

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

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

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

            if (BtnViewCertificate != null)
            {
                BtnViewCertificate.Dispose();
                BtnViewCertificate = null;
            }
        }
コード例 #2
0
        void ReleaseDesignerOutlets()
        {
            if (BtnChangeCertificate != null)
            {
                BtnChangeCertificate.Dispose();
                BtnChangeCertificate = null;
            }

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

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

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

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

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

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

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

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

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