Esempio n. 1
0
        protected override void LoadChildren()
        {
            if (seq == null)
            {
                return;
            }

            foreach (ITestItem item in seq.Children)
            {
                switch (item.TestItemType)
                {
                case TestItemTypes.Sequence:
                    ISequence  seq   = item as ISequence;
                    SequenceVM seqVM = new SequenceVM(seq);
                    seqVM.IsExpanded = true;
                    base.Children.Add(seqVM);
                    break;

                case TestItemTypes.Step:
                    IStep  step   = item as IStep;
                    StepVM stepVM = new StepVM(step, this);
                    stepVM.IsExpanded = true;
                    base.Children.Add(stepVM);
                    break;

                default:
                    break;
                }
            }
        }
Esempio n. 2
0
 void LoadChildren()
 {
     if (seqFile == null)
     {
         return;
     }
     foreach (ISequence seq in seqFile.Sequences)
     {
         SequenceVM seqVM = new SequenceVM(seq);
         seqVM.IsExpanded = true;
         seqVM.IsChecked  = true;
         seqVMs.Add(seqVM);
     }
     //RaisePropertyChanged("ChildrenVMs");
 }
Esempio n. 3
0
 public TestItemVM(ITestItem ti, SequenceVM parent) : base(parent, true)
 {
     testItem = ti;
 }
Esempio n. 4
0
 public StepVM(IStep step, SequenceVM parent) : base(parent, true)
 {
 }