コード例 #1
0
        void ReleaseDesignerOutlets()
        {
            if (ButtonButton != null)
            {
                ButtonButton.Dispose();
                ButtonButton = null;
            }

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

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

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

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