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

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

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

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

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

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

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

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

            if (TableView != null)
            {
                TableView.Dispose();
                TableView = null;
            }
        }
예제 #2
0
        /// <inheritdoc/>
        public void Dispose()
        {
            if (isDisposed)
            {
                return;
            }

            if (HasVideo)
            {
                ((IDisposable)Video).Dispose();
                Video = null;
            }

            container.Dispose();

            isDisposed = true;
        }
예제 #3
0
        /// <inheritdoc/>
        public void Dispose()
        {
            if (isDisposed)
            {
                return;
            }

            var video = VideoStreams.Cast <MediaStream>();
            var audio = AudioStreams.Cast <MediaStream>();

            var streams = video.Concat(audio);

            foreach (var stream in streams)
            {
                stream.Dispose();
            }

            container.Dispose();

            isDisposed = true;
        }
예제 #4
0
        void ReleaseDesignerOutlets()
        {
            if (CommentButtonRightConstraint != null)
            {
                CommentButtonRightConstraint.Dispose();
                CommentButtonRightConstraint = null;
            }

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

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

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

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

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

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

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

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

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