Example #1
0
 void ReleaseDesignerOutlets()
 {
     if (ClockText != null)
     {
         ClockText.Dispose();
         ClockText = null;
     }
     if (DialogNavText != null)
     {
         DialogNavText.Dispose();
         DialogNavText = null;
     }
     if (IncrementButton != null)
     {
         IncrementButton.Dispose();
         IncrementButton = null;
     }
     if (NavigateButton != null)
     {
         NavigateButton.Dispose();
         NavigateButton = null;
     }
     if (SendMessageButton != null)
     {
         SendMessageButton.Dispose();
         SendMessageButton = null;
     }
     if (ShowDialogButton != null)
     {
         ShowDialogButton.Dispose();
         ShowDialogButton = null;
     }
     if (WelcomeText != null)
     {
         WelcomeText.Dispose();
         WelcomeText = null;
     }
 }
Example #2
0
        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;
            }
        }