コード例 #1
0
    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;
    }
コード例 #2
0
 public void OnToggleFilter(FilterToggle selectedFilter)
 {
     base.NeedRefresh = true;
 }
コード例 #3
0
ファイル: LogDisplay.cs プロジェクト: gsirhc/AdvancedTail
 private void toolStripStatusLabelFilter_Click(object sender, EventArgs e)
 {
     FilterToggle?.Invoke();
 }