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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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