/// <summary> /// Shows addons for specific category /// </summary> /// <param name="Category"></param> public void ShowAddonsForCategory(AddonCategories.Categories Category) { int items = 0; foreach (AddonControl ac in ViewAddonGlobalControlsList.AddonControlList) { if (ac.Addon.Category.HasFlag(Category)) { ac.Visibility = Visibility.Visible; items++; } else { ac.Visibility = Visibility.Collapsed; } } if (items < AddonConstants.HOW_MUCH_ADDONS_SHOW_AT_SCROLL) { GenerateMissingAddons((AddonConstants.HOW_MUCH_ADDONS_SHOW_AT_SCROLL - items)); } }
public void ShowAddonsByCategory(AddonCategories.Categories Category) { }
public static List <Addon> GetAddonsFromQueueWithParameter(string Phrase, AddonCategories.Categories addonCategory, GameBuild.Build gameBuild) { return(GetAddonsFromQueueWithParameter(Phrase, addonCategory).Where(c => c.Build == gameBuild).ToList()); }
public static List <Addon> GetAddonsFromQueueWithParameter(string Phrase, AddonCategories.Categories addonCategory) { return(GetAddonsFromQueueWithParameter(Phrase).Where(c => c.Category == addonCategory).ToList()); }
private List <Addon> GenerateMissingAddons(string Phrase, AddonCategories.Categories Category, int items) { return(AddonGlobals.AddonQueue.Where(c => c.Name.ContainsWithComparer(Phrase)).Where(c => c.Category == Category).Where(c => c.Build == GameGlobals.SelectedGame.Build).Take(items).ToList()); }
private List <Addon> GenerateMissingAddons(AddonCategories.Categories Category, int items) { return(AddonGlobals.AddonQueue.Where(c => c.Category == Category).Where(c => c.Build == GameGlobals.SelectedGame.Build).Take(items).ToList()); }