private void SwitchTabToPreviousAction() { if (LogTabs.Count < 2) { return; } int i = LogTabs.IndexOf(CurrentTab); if (i == -1) { return; } i--; if (i < 0) { i = LogTabs.Count - 1; } CurrentTab = LogTabs[i]; }
private void SwitchTabToNextAction() { if (LogTabs.Count < 2) { return; } int i = LogTabs.IndexOf(CurrentTab); if (i == -1) { return; } i++; if (i >= LogTabs.Count) { i = 0; } CurrentTab = LogTabs[i]; }