コード例 #1
0
        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];
        }
コード例 #2
0
        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];
        }