void tabsViews_SelectedIndexChanged(object sender, EventArgs e) { if (FiddlerApplication.UI.tabsViews.SelectedTab == tabPage && isCheckedUpdata == false) { upgradeService.StartCheckUpgrade(); isCheckedUpdata = true; } }
void tabsViews_SelectedIndexChanged(object sender, EventArgs e) { if (isCheckedUpdata == false && FiddlerApplication.UI.tabsViews.SelectedTab == tabPage) { isCheckedUpdata = true; upgradeService.StartCheckUpgrade(); //upgradeService.StartCheckUpgradeThread(); } //operation report if (FiddlerApplication.UI.tabsViews.SelectedTab == tabPage) { isInFreeHttpTab = true; operationReportService.InOperation(DateTime.Now); } else if (isInFreeHttpTab) { isInFreeHttpTab = false; operationReportService.OutOperation(DateTime.Now, myFreeHttpWindow.RequestRuleListView.Items.Count, myFreeHttpWindow.ResponseRuleListView.Items.Count); } }