Example #1
0
        void ReleaseDesignerOutlets()
        {
            if (BufferSizeInput != null)
            {
                BufferSizeInput.Dispose();
                BufferSizeInput = null;
            }

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

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

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

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

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

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

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

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

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

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

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

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