示例#1
0
 private void OnAddTestClick(object sender, System.EventArgs e)
 {
     DlgAddCardTest dlg = new DlgAddCardTest();
       if (dlg.ShowDialog() == DialogResult.OK)
       {
     switch (dlg.Choice)
     {
       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 "CloseCard":
     CardCloseTestConfig close = new CardCloseTestConfig();
     _model.Tests.Add(close);
     _parentDlg.FillTree();
     break;
     }
       }
 }
示例#2
0
 public PnlSaveCardTest(CardSaveTestConfig model)
     : this()
 {
     Dds01Chb.DataBindings.Add("Checked", model, "AssignDds01");
       Dds02Chb.DataBindings.Add("Checked", model, "AssignDds02");
       Dds03Chb.DataBindings.Add("Checked", model, "AssignDds03");
       Dds04Chb.DataBindings.Add("Checked", model, "AssignDds04");
       DdsZhkhChb.DataBindings.Add("Checked", model, "AssignDdsZhkh");
       DdsAntiterrorChb.DataBindings.Add("Checked", model, "AssignDdsAntiterror");
 }
示例#3
0
 public SaveCard(CardTest parent, CardSaveTestConfig cfg)
 {
     _parent = parent;
       _cfg = cfg;
 }
示例#4
0
        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;
            }

              }
        }