private void SelectTabInList(SettingsTabNode tabNode) { using (FlagManager.UseFlag(nameof(SelectTabInList))) { CategoryListView.SelectedObject = tabNode; } }
public bool ShowSettingTab(SettingTab tab) { using (FlagManager.UseFlag(nameof(ShowSettingTab))) { if (CurrentTab != null) { if (CurrentTab.Panel?.HasSettingsChanged ?? false) { return(false); } if (CurrentTab.Panel != null) { CurrentTab.Panel.Visible = false; } } CurrentTab = SettingsTabPanels.FirstOrDefault(x => x.Tab == tab); if (CurrentTab != null) { if (CurrentTab.Panel != null) { CurrentTab.Panel.Visible = true; } SelectTabInList(CurrentTab); return(true); } } return(false); }