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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            if (TxtUsername != null)
            {
                TxtUsername.Dispose();
                TxtUsername = null;
            }
        }
Example #2
0
        void ReleaseDesignerOutlets()
        {
            if (BtnAddGroup != null)
            {
                BtnAddGroup.Dispose();
                BtnAddGroup = null;
            }

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

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

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

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

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

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

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

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

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

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

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

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

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