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; } }
void ReleaseDesignerOutlets() { if (ChatList != null) { ChatList.Dispose(); ChatList = null; } if (ChatListMessageColumn != null) { ChatListMessageColumn.Dispose(); ChatListMessageColumn = null; } if (ChatListSenderColumn != null) { ChatListSenderColumn.Dispose(); ChatListSenderColumn = null; } if (EnteredBufferSize != null) { EnteredBufferSize.Dispose(); EnteredBufferSize = null; } if (EnteredIPAddress != null) { EnteredIPAddress.Dispose(); EnteredIPAddress = null; } if (EnteredMessage != null) { EnteredMessage.Dispose(); EnteredMessage = null; } if (EnteredName != null) { EnteredName.Dispose(); EnteredName = null; } if (EnteredPort != null) { EnteredPort.Dispose(); EnteredPort = null; } if (SendButton != null) { SendButton.Dispose(); SendButton = null; } if (ConnectButton != null) { ConnectButton.Dispose(); ConnectButton = null; } }