private void EnableMenuForCapability(PageCapability capability) { var enable = !(capability.requireUserLoggedIn && !ApplicationUtil.instance.isUserLoggedIn) && !(capability.requireNetwork && !ApplicationUtil.instance.isInternetReachable); orderingMenu.SetEnabled(enable); filtersMenu.SetEnabled(enable); clearFiltersButton.SetEnabled(enable); searchToolbar.SetEnabled(enable); }
protected BasePage(PackageFilterTab tab, PageCapability capability) { m_Tab = tab; m_Capability = capability; if (m_Filters == null) { var defaultOrdering = m_Capability?.orderingValues?.FirstOrDefault(); m_Filters = new PageFilters { orderBy = defaultOrdering?.orderBy, isReverseOrder = false }; } }
public SimplePage(PackageFilterTab tab, PageCapability capability) : base(tab, capability) { }
public PaginatedPage(PackageDatabase packageDatabase, AssetStoreClient assetStoreClient, PackageFiltering packageFiltering, PackageManagerPrefs packageManagerPrefs, PackageFilterTab tab, PageCapability capability) : base(packageDatabase, tab, capability) { ResolveDependencies(packageDatabase, assetStoreClient, packageFiltering, packageManagerPrefs); }
public PaginatedPage(PackageFilterTab tab, PageCapability capability) : base(tab, capability) { }
public SimplePage(PackageDatabase packageDatabase, PackageFiltering packageFiltering, PackageFilterTab tab, PageCapability capability) : base(packageDatabase, tab, capability) { ResolveDependencies(packageDatabase, packageFiltering); }