public override void Bind(global::Empire empire) { base.Bind(empire); this.RetrieveSubCategories(); this.FiltersContainer.SetContent(this.subCategories, "Marketplace", base.gameObject); this.SubPanelsContainer.SetContent(this.subCategories, base.gameObject); for (int i = 0; i < this.SubPanelsContainer.SubPanels.Count; i++) { TradablesListPanel tradablesListPanel = this.SubPanelsContainer.SubPanels[i] as TradablesListPanel; if (tradablesListPanel != null) { tradablesListPanel.Bind(base.Empire); } } this.DepartmentOfScience = base.Empire.GetAgency <DepartmentOfScience>(); this.UpdateFiltersAvailability(); FilterToggle filterToggle2 = this.FiltersContainer.FilterToggles.FirstOrDefault((FilterToggle filterToggle) => filterToggle.AgeTransform.Enable); if (filterToggle2 != null) { filterToggle2.Toggle.State = true; this.FiltersContainer.OnToggleFilter(filterToggle2); } base.NeedRefresh = true; }
public void OnToggleFilter(FilterToggle selectedFilter) { base.NeedRefresh = true; }
private void toolStripStatusLabelFilter_Click(object sender, EventArgs e) { FilterToggle?.Invoke(); }