コード例 #1
0
        private void btnReRunTest_Click(object sender, RoutedEventArgs e)
        {
            _avgCpuValue1        = 0;
            _avgCpuValue2        = 0;
            _avgCpuValue3        = 0;
            _avgProcessedValue   = 0;
            _avgRreceivedValue   = 0;
            _totalCpuValue1      = 0;
            _totalCpuValue2      = 0;
            _totalCpuValue3      = 0;
            _totalProcessedValue = 0;
            _totalReceivedValue  = 0;
            _timerCount          = 0;
            _loadGenHelper       = new LoadGenHelper();
            btnNext.Content      = "Next";

            picServiceIsRunning.Source      = new BitmapImage(new Uri("pack://application:,,,/BizTalk Benchmark Wizard;component/Resources/Images/unknown.png"));
            picUpdateSendportUri.Source     = new BitmapImage(new Uri("pack://application:,,,/BizTalk Benchmark Wizard;component/Resources/Images/gear_run.png"));
            picStartBizTalkArtefacts.Source = new BitmapImage(new Uri("pack://application:,,,/BizTalk Benchmark Wizard;component/Resources/Images/gear_pause.png"));
            picStartCollectorSets.Source    = new BitmapImage(new Uri("pack://application:,,,/BizTalk Benchmark Wizard;component/Resources/Images/gear_pause.png"));
            picInitPerfCounters.Source      = new BitmapImage(new Uri("pack://application:,,,/BizTalk Benchmark Wizard;component/Resources/Images/gear_pause.png"));
            picStartLoadgen.Source          = new BitmapImage(new Uri("pack://application:,,,/BizTalk Benchmark Wizard;component/Resources/Images/gear_pause.png"));

            tabControl1.SelectedIndex = 2;
        }
コード例 #2
0
        private void btnTestService_Click(object sender, RoutedEventArgs e)
        {
            btnTestService.IsEnabled = false;
            Properties.Settings.Default.DefaultIndigoServiceUri = txtIndigoServiceServer.Text;
            Properties.Settings.Default.Save();

            _loadGenHelper = new LoadGenHelper();
            bool testPass = _loadGenHelper.TestIndigoService(txtIndigoServiceServer.Text);

            picServiceIsRunning.Source = testPass ?
                                         new System.Windows.Media.Imaging.BitmapImage(new Uri("pack://application:,,,/BizTalk Benchmark Wizard;component/Resources/Images/passed.png")) :
                                         new System.Windows.Media.Imaging.BitmapImage(new Uri("pack://application:,,,/BizTalk Benchmark Wizard;component/Resources/Images/failed.png"));

            btnNext.IsEnabled        = testPass;
            btnTestService.IsEnabled = true;
        }