public void CreateLists()
{
// Parse out the samples from the categories
List<object> categoryItems = new List<object>();
foreach (var category in categories)
{
for (int i = 0; i < category.Items.Count; i++)
{
if ((category.Items[i] as TreeItem).Items.Count > 0)
{
categoryItems.Add((category.Items[i] as TreeItem).Items);
}
}
}
// Create a flat list of samples
foreach (List<object> item in categoryItems)
{
foreach (var item1 in item)
{
sampleItems.Add(item1 as SampleModel);
}
}
}
public void Search(string searchText)