コード例 #1
0
 public PnlCardListTest(CardListTestConfig model)
     : this()
 {
     tbxNum.DataBindings.Add("Text", model, "NumberOfPageChanging");
 }
コード例 #2
0
ファイル: PnlLoopTest.cs プロジェクト: sadstorm/LoadTester112
        private void btnAddTest_Click(object sender, EventArgs e)
        {
            DlgAddTest dlg = new DlgAddTest();
              if (dlg.ShowDialog() == DialogResult.OK)
              {
            switch (dlg.Choice)
            {
              case "Login":
            LoginTestConfig login = new LoginTestConfig();
            _model.Tests.Add(login);
            _parentDlg.FillTree();
            break;
              case "Logout":
            LogoutTestConfig logout = new LogoutTestConfig();
            _model.Tests.Add(logout);
            _parentDlg.FillTree();
            break;

              case "Configuration":
            ConfigurationTestConfig configuration = new ConfigurationTestConfig();
            _model.Tests.Add(configuration);
            _parentDlg.FillTree();
            break;

              case "TotalCardList":
            TotalCardListTestConfig totalCardListTest = new TotalCardListTestConfig();
            _model.Tests.Add(totalCardListTest);
            _parentDlg.FillTree();
            break;

              case "RelevantCardList":
            RelevantCardListTestConfig relevantCardListTest = new RelevantCardListTestConfig();
            _model.Tests.Add(relevantCardListTest);
            _parentDlg.FillTree();
            break;

              case "IncidentTypeChoice":
            IncidentTypeChoiceTestConfig incidentTypeChoice = new IncidentTypeChoiceTestConfig();
            _model.Tests.Add(incidentTypeChoice);
            _parentDlg.FillTree();
            break;

              case "Loop":
            LoopConfig loop = new LoopConfig();
            _model.Tests.Add(loop);
            _parentDlg.FillTree();
            break;
              case "OpenCard":
            CardTestConfig card = new CardTestConfig();
            _model.Tests.Add(card);
            _parentDlg.FillTree();
            break;
              case "SaveCard":
            CardSaveTestConfig save = new CardSaveTestConfig();
            _model.Tests.Add(save);
            _parentDlg.FillTree();
            break;
              case "CardList":
            CardListTestConfig list = new CardListTestConfig();
            _model.Tests.Add(list);
            _parentDlg.FillTree();
            break;
              case "WaitCall":
            WaitCallConfig wc = new WaitCallConfig();
            _model.Tests.Add(wc);
            _parentDlg.FillTree();
            break;
            }

              }
        }