private void UpdateSummaryText(TabSelections tab)
 {
     if (tab != currentTab) {
         return;
     }
     int shown = 0;
     int hidden = 0;
     switch (tab) {
         case TabSelections.CALLLOG:
             shown = listViewCallLogs.Items.Count;
             hidden = callLogItems.Count - shown;
             break;
         case TabSelections.ADRBOOK:
             shown = listViewAdrBook.Items.Count;
             hidden = adrBookItems.Count - shown;
             break;
         case TabSelections.SMS:
             shown = listViewSMS.Items.Count;
             hidden = smsItems.Count - shown;
             break;
         case TabSelections.IMAGES:
             shown = listViewImages.Items.Count;
             hidden = imageItems.Count - shown;
             break;
     }
     toolStripStatusLabelSummary.Text = String.Format("Shown = {0}, Hidden = {1}", shown, hidden);
 }
 private void tabResults_SelectedIndexChanged(object sender, EventArgs e)
 {
     switch (tabResults.SelectedIndex) {
         case 0:
             currentTab = TabSelections.CALLLOG;
             break;
         case 1:
             currentTab = TabSelections.ADRBOOK;
             break;
         case 2:
             currentTab = TabSelections.SMS;
             break;
         case 3:
             currentTab = TabSelections.IMAGES;
             break;
     }
     UpdateSummaryText(currentTab);
     EnableDisableButtons();
 }