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

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

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

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

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

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

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

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

            if (ToggleTasksButton != null)
            {
                ToggleTasksButton.Dispose();
                ToggleTasksButton = null;
            }
        }
Exemplo n.º 2
0
        void ReleaseDesignerOutlets()
        {
            if (AmountOfTasksLabel != null)
            {
                AmountOfTasksLabel.Dispose();
                AmountOfTasksLabel = null;
            }

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

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

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

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

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

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