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; } }
/// <inheritdoc/> public void Dispose() { if (isDisposed) { return; } if (HasVideo) { ((IDisposable)Video).Dispose(); Video = null; } container.Dispose(); isDisposed = true; }
/// <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; }
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; } }