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; } }
void ReleaseDesignerOutlets() { if (ChatList != null) { ChatList.Dispose(); ChatList = null; } if (ChatListMessageColumn != null) { ChatListMessageColumn.Dispose(); ChatListMessageColumn = null; } if (ChatListSenderColumn != null) { ChatListSenderColumn.Dispose(); ChatListSenderColumn = null; } if (ClientList != null) { ClientList.Dispose(); ClientList = null; } if (ClientListClientColumn != null) { ClientListClientColumn.Dispose(); ClientListClientColumn = null; } if (EnteredBufferSize != null) { EnteredBufferSize.Dispose(); EnteredBufferSize = null; } if (EnteredMessage != null) { EnteredMessage.Dispose(); EnteredMessage = null; } if (EnteredServerName != null) { EnteredServerName.Dispose(); EnteredServerName = null; } if (EnteredServerIP != null) { EnteredServerIP.Dispose(); EnteredServerIP = null; } if (EnteredServerPort != null) { EnteredServerPort.Dispose(); EnteredServerPort = null; } if (StartStopButton != null) { StartStopButton.Dispose(); StartStopButton = null; } if (SendMessageButton != null) { SendMessageButton.Dispose(); SendMessageButton = null; } }