Ejemplo n.º 1
0
        void ReleaseDesignerOutlets()
        {
            if (BodyContainer != null)
            {
                BodyContainer.Dispose();
                BodyContainer = null;
            }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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