private void InitializeSamples() { this.samples = new ObservableCollection <SampleData>(); for (int i = 0; i < this.xThread.GetSampleCount(); ++i) { HoloToolkit.Sharing.ProfileSample sample = this.xThread.GetSample(i); if (sample.GetParentIndex() == this.sampleIndex) { this.samples.Add(new SampleData(sample, i, this.xThread)); } } }