void ReleaseDesignerOutlets()
        {
            if (StatusField != null)
            {
                StatusField.Dispose();
                StatusField = null;
            }

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

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

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

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

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

            if (EditorBox != null)
            {
                EditorBox.Dispose();
                EditorBox = null;
            }
        }
Пример #2
0
        void ReleaseDesignerOutlets()
        {
            if (HostField != null)
            {
                HostField.Dispose();
                HostField = null;
            }

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

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

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

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

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

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