Example #1
0
        void ReleaseDesignerOutlets()
        {
            if (CrashButton != null)
            {
                CrashButton.Dispose();
                CrashButton = null;
            }

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

            if (WeaverButton != null)
            {
                WeaverButton.Dispose();
                WeaverButton = null;
            }
        }
Example #2
0
        void ReleaseDesignerOutlets()
        {
            if (DispatcherButton != null)
            {
                DispatcherButton.Dispose();
                DispatcherButton = null;
            }

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

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

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

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

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