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; } } }
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"); }
public TestItemVM(ITestItem ti, SequenceVM parent) : base(parent, true) { testItem = ti; }
public StepVM(IStep step, SequenceVM parent) : base(parent, true) { }