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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            if (TxtUsername != null)
            {
                TxtUsername.Dispose();
                TxtUsername = null;
            }
        }
示例#2
0
        void ReleaseDesignerOutlets()
        {
            if (BtnAdd != null)
            {
                BtnAdd.Dispose();
                BtnAdd = null;
            }

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

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

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

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

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

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

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

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

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

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

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