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

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

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

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

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

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

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

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

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

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

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

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

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