示例#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;
                }
            }
        }
示例#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");
 }
示例#3
0
 public TestItemVM(ITestItem ti, SequenceVM parent) : base(parent, true)
 {
     testItem = ti;
 }
示例#4
0
文件: StepVM.cs 项目: kaibozhang/1
 public StepVM(IStep step, SequenceVM parent) : base(parent, true)
 {
 }