private void LoadListView() { // add all of the classes into the listview. we will also want to load the elements as we go. ListView lv = this.oInfoView; List <ListViewOntologyInfoEntry> lvoes = new List <ListViewOntologyInfoEntry>(); foreach (String oClassName in this.oInfo.GetClassNames()) { OntologyClass oClass = this.oInfo.GetClass(oClassName); ListViewOntologyInfoEntry curr = new ListViewOntologyInfoEntry(oClass.GetNameString(true), oClass.GetNameString(false), oClass.GetNamepaceString(), oClass); lvoes.Add(curr); } lv.ItemsSource = lvoes; }
public void AddSublistEntry(ListViewOntologyInfoEntry lvoe) { if (this.subItemsDictionary.ContainsKey(lvoe.FullName)) /* do nothing at all. it is already here */ } {