コード例 #1
0
ファイル: FiddlerFreeHttp.cs プロジェクト: yesnomore/FreeHttp
 void tabsViews_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (FiddlerApplication.UI.tabsViews.SelectedTab == tabPage && isCheckedUpdata == false)
     {
         upgradeService.StartCheckUpgrade();
         isCheckedUpdata = true;
     }
 }
コード例 #2
0
        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);
            }
        }