示例#1
0
        void ReleaseDesignerOutlets()
        {
            if (CurrentTimeEntryCard != null)
            {
                CurrentTimeEntryCard.Dispose();
                CurrentTimeEntryCard = null;
            }

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

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

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

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

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

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

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

            if (TimelineView != null)
            {
                TimelineView.Dispose();
                TimelineView = null;
            }
        }
示例#2
0
        private double GetPossibleMinHeightForSuggestionContainer()
        {
            var containerSize        = SuggestionsContainerStack.Measure(double.PositiveInfinity, double.PositiveInfinity);
            var suggestionsContainer = SuggestionsContainer.Measure(double.PositiveInfinity, double.PositiveInfinity);

            double tempHeight = Math.Min(containerSize.Request.Height, Math.Min(suggestionsContainer.Request.Height + 20, SuggestionsContainerStack.Height));

            System.Diagnostics.Debug.WriteLine($"Container Size : {containerSize}, SuggestionContianer Size : {suggestionsContainer}, Actual = {SuggestionsContainerStack.Height}, Height To be Set : {tempHeight}");

            return(tempHeight);
        }
        void ReleaseDesignerOutlets()
        {
            if (CurrentTimeEntryCard != null)
            {
                CurrentTimeEntryCard.Dispose();
                CurrentTimeEntryCard = null;
            }

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

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

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

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

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

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

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

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

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

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

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

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

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

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