/// <summary>
        /// Returns true if changes were made
        /// </summary>
        /// <param name="desired"></param>
        /// <returns></returns>
        private bool makeAvailableItemsLike(params NavigationManager.MainMenuSelections[] desired)
        {
            var desiredList = new List <MainMenuSelections>(desired);

            if (PowerPlannerApp.UseUnifiedCalendarDayTabItem)
            {
                desiredList.Remove(MainMenuSelections.Day);
            }

            if (PowerPlannerApp.DoNotShowYearsInTabItems)
            {
                desiredList.Remove(MainMenuSelections.Years);
            }

            if (PowerPlannerApp.DoNotShowSettingsInTabItems)
            {
                desiredList.Remove(MainMenuSelections.Settings);
            }

            bool answer = IListExtensions.MakeListLike(_availableItems, desiredList);

            if (PowerPlannerApp.DoNotShowYearsInTabItems && !AvailableItems.Any() && Popups.Count == 0)
            {
                OpenYears();
            }

            return(answer);
        }
Beispiel #2
0
 /// <summary>
 /// Returns true if changes were made
 /// </summary>
 /// <param name="desired"></param>
 /// <returns></returns>
 private bool makeAvailableItemsLike(params NavigationManager.MainMenuSelections[] desired)
 {
     return(IListExtensions.MakeListLike(_availableItems, desired));
 }